NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 __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"

Definition at line 239 of file os.h.

#define iswap_int2 (   x)
Value:
(((x & 0x00ff) << 8) + \
((x & 0xff00) >> 8))

Definition at line 194 of file os.h.

#define iswap_int4 (   x)
Value:
(((x & 0x000000ff) << 24) + \
((x & 0x0000ff00) << 8) + \
((x & 0x00ff0000) >> 8) + \
((x & 0xff000000) >> 24))

Definition at line 188 of file os.h.

#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))

Definition at line 178 of file os.h.

#define le_int4 (   x)    (x)

Definition at line 231 of file os.h.

#define PRId16   "d"

Definition at line 242 of file os.h.

#define PRId32   "d"

Definition at line 241 of file os.h.

#define PRId64   __PRI64__ "d"

Definition at line 240 of file os.h.

#define PRId8   "d"

Definition at line 243 of file os.h.

#define PRIu16   "u"

Definition at line 246 of file os.h.

#define PRIu32   "u"

Definition at line 245 of file os.h.

#define PRIu64   __PRI64__ "u"

Definition at line 244 of file os.h.

#define PRIu8   "u"

Definition at line 247 of file os.h.

#define SP_LITTLE_ENDIAN

Definition at line 92 of file os.h.