|
7 | 7 | * |
8 | 8 | * Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $Id: c.h,v 1.30 1998/01/27 15:35:00 momjian Exp $ |
| 10 | + * $Id: c.h,v 1.31 1998/02/11 21:17:44 momjian Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -705,16 +705,11 @@ typedef struct Exception |
705 | 705 | #defineStrNCpy(dst,src,len)\ |
706 | 706 | (strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : (dummyret)NULL,(void)(dst)) |
707 | 707 |
|
708 | | -/* Get a bit mask of the bits set in non-int32 aligned addresses */ |
709 | | -#defineINT_ALIGN_MASK (sizeof(int32) - 1) |
710 | | - |
711 | 708 | /* This function gets call too often, so we inline it if we can */ |
712 | 709 | #defineMemSet(start,val,len) do \ |
713 | 710 | {/* are we aligned for int32? */ \ |
714 | | -/* We have to cast the pointer to int \ |
715 | | - so we can do the AND */ \ |
716 | | -if (((int)(start)&INT_ALIGN_MASK)==0&& \ |
717 | | -((len)&INT_ALIGN_MASK)==0&& \ |
| 711 | +if ((start)==INTALIGN(start)&& \ |
| 712 | +(len) %sizeof(int32)==0&& \ |
718 | 713 | (val)==0&& \ |
719 | 714 | /* \ |
720 | 715 | * We got this number by testing this \ |
|