summaryrefslogtreecommitdiff
path: root/src/include/utils/memutils.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-06-17 15:16:09 +0000
committerBruce Momjian <bruce@momjian.us>1999-06-17 15:16:09 +0000
commit4c6538259659b6325da5205005846162c78fd593 (patch)
tree2acae522c457c5c124fce867758b29752309a989 /src/include/utils/memutils.h
parent0c1ec674474a317c8f90a114db4111f48cc76223 (diff)
Remove QUERY_LIMIT and documenation on same. Change _ALIGN to TYPEALIGN
for Irix.
Diffstat (limited to 'src/include/utils/memutils.h')
-rw-r--r--src/include/utils/memutils.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h
index 74f00902432..20294073f1e 100644
--- a/src/include/utils/memutils.h
+++ b/src/include/utils/memutils.h
@@ -15,7 +15,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: memutils.h,v 1.27 1999/05/26 12:57:07 momjian Exp $
+ * $Id: memutils.h,v 1.28 1999/06/17 15:15:59 momjian Exp $
*
* NOTES
* some of the information in this file will be moved to
@@ -33,18 +33,18 @@
* There used to be some incredibly crufty platform-dependent hackery here,
* but now we rely on the configure script to get the info for us. Much nicer.
*
- * NOTE: _ALIGN will not work if ALIGNVAL is not a power of 2.
+ * NOTE: TYPEALIGN will not work if ALIGNVAL is not a power of 2.
* That case seems extremely unlikely to occur in practice, however.
* ----------------
*/
-#define _ALIGN(ALIGNVAL,LEN) (((long)(LEN) + (ALIGNVAL-1)) & ~(ALIGNVAL-1))
+#define TYPEALIGN(ALIGNVAL,LEN) (((long)(LEN) + (ALIGNVAL-1)) & ~(ALIGNVAL-1))
-#define SHORTALIGN(LEN) _ALIGN(ALIGNOF_SHORT, (LEN))
-#define INTALIGN(LEN) _ALIGN(ALIGNOF_INT, (LEN))
-#define LONGALIGN(LEN) _ALIGN(ALIGNOF_LONG, (LEN))
-#define DOUBLEALIGN(LEN) _ALIGN(ALIGNOF_DOUBLE, (LEN))
-#define MAXALIGN(LEN) _ALIGN(MAXIMUM_ALIGNOF, (LEN))
+#define SHORTALIGN(LEN) TYPEALIGN(ALIGNOF_SHORT, (LEN))
+#define INTALIGN(LEN) TYPEALIGN(ALIGNOF_INT, (LEN))
+#define LONGALIGN(LEN) TYPEALIGN(ALIGNOF_LONG, (LEN))
+#define DOUBLEALIGN(LEN) TYPEALIGN(ALIGNOF_DOUBLE, (LEN))
+#define MAXALIGN(LEN) TYPEALIGN(MAXIMUM_ALIGNOF, (LEN))
/*****************************************************************************
* oset.h -- Fixed format ordered set definitions. *