forked from old/legacy-imlib2
add a new helper macro by Tres Melton: IS_ALIGNED_128
SVN revision: 17059
This commit is contained in:
parent
3ed18e218c
commit
93fd48c324
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue