The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sysdata.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __swswap16(x)
 
#define __swswap32(x)
 
#define __swswap64(x)
 
#define archtosword16(x)   (x)
 
#define archtosword32(x)   (x)
 
#define archtosword64(x)   (x)
 
#define swordtoarch16(x)   (x)
 
#define swordtoarch32(x)   (x)
 
#define swordtoarch64(x)   (x)
 

Typedefs

typedef signed short SW_s16
 
typedef signed int SW_s32
 
typedef signed long long SW_s64
 
typedef signed char SW_s8
 
typedef unsigned short SW_u16
 
typedef unsigned int SW_u32
 
typedef unsigned long long SW_u64
 
typedef unsigned char SW_u8
 

Macro Definition Documentation

#define __swswap16 (   x)
Value:
((SW_u16)( \
(((SW_u16)(x) & (SW_u16)0x00ffU) << 8) | \
(((SW_u16)(x) & (SW_u16)0xff00U) >> 8) ))
unsigned short SW_u16
Definition: sysdata.h:38

Definition at line 63 of file sysdata.h.

#define __swswap32 (   x)
Value:
((SW_u32)( \
(((SW_u32)(x) & (SW_u32)0x000000ffUL) << 24) | \
(((SW_u32)(x) & (SW_u32)0x0000ff00UL) << 8) | \
(((SW_u32)(x) & (SW_u32)0x00ff0000UL) >> 8) | \
(((SW_u32)(x) & (SW_u32)0xff000000UL) >> 24) ))
unsigned int SW_u32
Definition: sysdata.h:41

Definition at line 69 of file sysdata.h.

#define __swswap64 (   x)
Value:
((SW_u64)( \
(SW_u64)(((SW_u64)(x) & (SW_u64)0x00000000000000ffULL) << 56) | \
(SW_u64)(((SW_u64)(x) & (SW_u64)0x000000000000ff00ULL) << 40) | \
(SW_u64)(((SW_u64)(x) & (SW_u64)0x0000000000ff0000ULL) << 24) | \
(SW_u64)(((SW_u64)(x) & (SW_u64)0x00000000ff000000ULL) << 8) | \
(SW_u64)(((SW_u64)(x) & (SW_u64)0x000000ff00000000ULL) >> 8) | \
(SW_u64)(((SW_u64)(x) & (SW_u64)0x0000ff0000000000ULL) >> 24) | \
(SW_u64)(((SW_u64)(x) & (SW_u64)0x00ff000000000000ULL) >> 40) | \
(SW_u64)(((SW_u64)(x) & (SW_u64)0xff00000000000000ULL) >> 56) ))
unsigned long long SW_u64
Definition: sysdata.h:56

Definition at line 77 of file sysdata.h.

#define archtosword16 (   x)    (x)

Definition at line 96 of file sysdata.h.

#define archtosword32 (   x)    (x)

Definition at line 97 of file sysdata.h.

#define archtosword64 (   x)    (x)

Definition at line 98 of file sysdata.h.

#define swordtoarch16 (   x)    (x)

Definition at line 93 of file sysdata.h.

#define swordtoarch32 (   x)    (x)

Definition at line 94 of file sysdata.h.

#define swordtoarch64 (   x)    (x)

Definition at line 95 of file sysdata.h.

Typedef Documentation

typedef signed short SW_s16

Definition at line 37 of file sysdata.h.

typedef signed int SW_s32

Definition at line 40 of file sysdata.h.

typedef signed long long SW_s64

Definition at line 55 of file sysdata.h.

typedef signed char SW_s8

Definition at line 34 of file sysdata.h.

typedef unsigned short SW_u16

Definition at line 38 of file sysdata.h.

typedef unsigned int SW_u32

Definition at line 41 of file sysdata.h.

typedef unsigned long long SW_u64

Definition at line 56 of file sysdata.h.

typedef unsigned char SW_u8

Definition at line 35 of file sysdata.h.