aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/array.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-07-19 07:07:29 +0000
committerBruce Momjian <bruce@momjian.us>1999-07-19 07:07:29 +0000
commitfaf7d7817456e3ae23eb882a99283581bae86112 (patch)
treef35a7e143115168680f37e62ed8893cf78b713a0 /src/include/utils/array.h
parente259780b1393184cc9dd83b2ee5d4c1eb10a2eaa (diff)
downloadpostgresql-faf7d7817456e3ae23eb882a99283581bae86112.tar.gz
postgresql-faf7d7817456e3ae23eb882a99283581bae86112.zip
Install new alignment code to use MAXALIGN rather than DOUBLEALIGN where
approproate.
Diffstat (limited to 'src/include/utils/array.h')
-rw-r--r--src/include/utils/array.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/utils/array.h b/src/include/utils/array.h
index f31c9d385d0..709d2a4722d 100644
--- a/src/include/utils/array.h
+++ b/src/include/utils/array.h
@@ -10,7 +10,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: array.h,v 1.20 1999/07/17 20:18:35 momjian Exp $
+ * $Id: array.h,v 1.21 1999/07/19 07:07:29 momjian Exp $
*
* NOTES
* XXX the data array should be LONGALIGN'd -- notice that the array
@@ -84,13 +84,13 @@ typedef struct
*/
#define ARR_DATA_PTR(a) \
(((char *) a) + \
- DOUBLEALIGN(sizeof(ArrayType) + 2 * (sizeof(int) * (a)->ndim)))
+ MAXALIGN(sizeof(ArrayType) + 2 * (sizeof(int) * (a)->ndim)))
/*
* The total array header size for an array of dimension n (in bytes).
*/
#define ARR_OVERHEAD(n) \
- (DOUBLEALIGN(sizeof(ArrayType) + 2 * (n) * sizeof(int)))
+ (MAXALIGN(sizeof(ArrayType) + 2 * (n) * sizeof(int)))
/*------------------------------------------------------------------------
* Miscellaneous helper definitions and routines for arrayfuncs.c