|
|
| version 1.10, 2014/01/29 14:16:53 | version 1.10.12.1, 2014/02/21 13:15:32 |
|---|---|
| Line 82 SUCH DAMAGE. | Line 82 SUCH DAMAGE. |
| #define NBBY 8 /* number of bits in a byte */ | #define NBBY 8 /* number of bits in a byte */ |
| #endif | #endif |
| #ifndef BYTE_ORDER | |
| #ifndef LITTLE_ENDIAN | |
| #define LITTLE_ENDIAN 1234 | |
| #endif /* LITTLE_ENDIAN */ | |
| #ifndef BIG_ENDIAN | |
| #define BIG_ENDIAN 4321 | |
| #endif /* BIG_ENDIAN */ | |
| #ifdef WORDS_BIGENDIAN | |
| #define BYTE_ORDER BIG_ENDIAN | |
| #else /* WORDS_BIGENDIAN */ | |
| #define BYTE_ORDER LITTLE_ENDIAN | |
| #endif /* WORDS_BIGENDIAN */ | |
| #endif /* BYTE_ORDER */ | |
| #ifndef be16toh | #ifndef be16toh |
| #define be16toh betoh16 | #define be16toh betoh16 |
| #endif | #endif |
| Line 188 int elwixInit(int mm, unsigned long maxmem); | Line 202 int elwixInit(int mm, unsigned long maxmem); |
| * return: none | * return: none |
| */ | */ |
| void elwixFini(); | void elwixFini(); |
| /* | |
| * elwix_byteOrder() - Detect platform byte order | |
| * | |
| * return: 1 = little endian or 0 big endian | |
| */ | |
| int elwix_byteOrder(); | |
| /* memory management hooks */ | /* memory management hooks */ |
| extern void *(*e_malloc)(size_t); | extern void *(*e_malloc)(size_t); |