Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit182c205

Browse files
committed
Change int align.
1 parent24cab6b commit182c205

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

‎src/include/c.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
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 $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -705,16 +705,11 @@ typedef struct Exception
705705
#defineStrNCpy(dst,src,len)\
706706
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : (dummyret)NULL,(void)(dst))
707707

708-
/* Get a bit mask of the bits set in non-int32 aligned addresses */
709-
#defineINT_ALIGN_MASK (sizeof(int32) - 1)
710-
711708
/* This function gets call too often, so we inline it if we can */
712709
#defineMemSet(start,val,len) do \
713710
{/* 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&& \
718713
(val)==0&& \
719714
/* \
720715
* We got this number by testing this \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp