Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
os.h File Reference
#include <limits.h>
#include <inttypes.h>

Go to the source code of this file.

Macros

#define SP_LITTLE_ENDIAN
 
#define iswap_int8(x)
 
#define iswap_int4(x)
 
#define iswap_int2(x)
 
#define le_int4(x)   (x)
 
#define le_int2(x)   (x)
 
#define __PRI64__   "l"
 
#define PRId64   __PRI64__ "d"
 
#define PRId32   "d"
 
#define PRId16   "d"
 
#define PRId8   "d"
 
#define PRIu64   __PRI64__ "u"
 
#define PRIu32   "u"
 
#define PRIu16   "u"
 
#define PRIu8   "u"
 

Macro Definition Documentation

#define __PRI64__   "l"
#define iswap_int2 (   x)
Value:
(((x & 0x00ff) << 8) + \
((x & 0xff00) >> 8))
#define iswap_int4 (   x)
Value:
(((x & 0x000000ff) << 24) + \
((x & 0x0000ff00) << 8) + \
((x & 0x00ff0000) >> 8) + \
((x & 0xff000000) >> 24))
#define iswap_int8 (   x)
Value:
(((x & 0x00000000000000ffLL) << 56) + \
((x & 0x000000000000ff00LL) << 40) + \
((x & 0x0000000000ff0000LL) << 24) + \
((x & 0x00000000ff000000LL) << 8) + \
((x & 0x000000ff00000000LL) >> 8) + \
((x & 0x0000ff0000000000LL) >> 24) + \
((x & 0x00ff000000000000LL) >> 40) + \
((x & 0xff00000000000000LL) >> 56))
#define le_int2 (   x)    (x)
#define le_int4 (   x)    (x)
#define PRId16   "d"
#define PRId32   "d"
#define PRId64   __PRI64__ "d"
#define PRId8   "d"
#define PRIu16   "u"
#define PRIu32   "u"
#define PRIu64   __PRI64__ "u"
#define PRIu8   "u"
#define SP_LITTLE_ENDIAN