Blender  V2.59
Defines
BKE_endian.h File Reference

Go to the source code of this file.

Defines

#define BKE_ENDIANNESS(a)

Detailed Description

Definition in file BKE_endian.h.


Define Documentation

#define BKE_ENDIANNESS (   a)
Value:
{  \
        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.