Fix the ALIGN and ALIGNBYTES macros for LP64.
Change-Id: I3a361255afce375ab1cefa449721f0aea4d47919
This commit is contained in:
parent
5cf1f22962
commit
78df45e1d1
@ -34,8 +34,13 @@
|
||||
#define MAXPATHLEN PATH_MAX
|
||||
#define MAXSYMLINKS 8
|
||||
|
||||
#define ALIGNBYTES 3
|
||||
#define ALIGN(p) (((unsigned int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
|
||||
#if __LP64__
|
||||
#define ALIGNBYTES 7
|
||||
#else
|
||||
#define ALIGNBYTES 3
|
||||
#endif
|
||||
|
||||
#define ALIGN(p) (((unsigned long)(p) + ALIGNBYTES) &~ ALIGNBYTES)
|
||||
|
||||
#define powerof2(x) ((((x)-1)&(x))==0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user