|
Blender
V2.59
|
Go to the source code of this file.
Defines | |
| #define | BKE_ENDIANNESS(a) |
Definition in file BKE_endian.h.
| #define BKE_ENDIANNESS | ( | a | ) |
{ \
union { \
intptr_t l; \
char c[sizeof (intptr_t)]; \
} u; \
u.l = 1; \
a = (u.c[sizeof (intptr_t) - 1] == 1) ? 1 : 0; \
}
BKE_ENDIANNESS(a) returns 1 if big endian and returns 0 if little endian
Definition at line 40 of file BKE_endian.h.