aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-02-11 21:17:44 +0000
committerBruce Momjian <bruce@momjian.us>1998-02-11 21:17:44 +0000
commit182c2057f2876da658b5f2db52258335a48c5425 (patch)
tree851f360e31d6da0d261d5b33d4a0619e65c53f79
parent24cab6bd0dd809091516d5a1b894f9a87fdadaf3 (diff)
downloadpostgresql-182c2057f2876da658b5f2db52258335a48c5425.tar.gz
postgresql-182c2057f2876da658b5f2db52258335a48c5425.zip
Change int align.
-rw-r--r--src/include/c.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/include/c.h b/src/include/c.h
index d031f814e45..1b928b3c6a5 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.30 1998/01/27 15:35:00 momjian Exp $
+ * $Id: c.h,v 1.31 1998/02/11 21:17:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -705,16 +705,11 @@ typedef struct Exception
#define StrNCpy(dst,src,len) \
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : (dummyret)NULL,(void)(dst))
-/* Get a bit mask of the bits set in non-int32 aligned addresses */
-#define INT_ALIGN_MASK (sizeof(int32) - 1)
-
/* This function gets call too often, so we inline it if we can */
#define MemSet(start, val, len) do \
{ /* are we aligned for int32? */ \
- /* We have to cast the pointer to int \
- so we can do the AND */ \
- if (((int)(start) & INT_ALIGN_MASK) == 0 && \
- ((len) & INT_ALIGN_MASK) == 0 && \
+ if ((start) == INTALIGN(start) && \
+ (len) % sizeof(int32) == 0 && \
(val) == 0 && \
/* \
* We got this number by testing this \