add a new helper macro by Tres Melton: IS_ALIGNED_128

SVN revision: 17059
This commit is contained in:
Mike Frysinger 2005-09-29 07:50:29 +00:00
parent 3ed18e218c
commit 93fd48c324
1 changed files with 6 additions and 5 deletions

View File

@ -7,12 +7,13 @@
#ifdef BUILD_X11
#define IS_ALIGNED_64(val) (!((val) & 0x7))
#define IS_ALIGNED_32(val) (!((val) & 0x3))
#define IS_ALIGNED_16(val) (!((val) & 0x1))
#define IS_ALIGNED_128(val) (!((val) & 0x15))
#define IS_ALIGNED_64(val) (!((val) & 0x7))
#define IS_ALIGNED_32(val) (!((val) & 0x3))
#define IS_ALIGNED_16(val) (!((val) & 0x1))
#define IS_MULTIPLE_2(val) (!((val) & 0x1))
#define IS_MULTIPLE_4(val) (!((val) & 0x3))
#define IS_MULTIPLE_2(val) (!((val) & 0x1))
#define IS_MULTIPLE_4(val) (!((val) & 0x3))
/* for PPC / Motorola / SPARC, not x86, ALPHA */
/* dont uncomment this - i have this here for my own testing */