3 uint32
load32_bigendian(const unsigned char *x
)
7 | (((uint32
) (x
[2])) << 8) \
8 | (((uint32
) (x
[1])) << 16) \
9 | (((uint32
) (x
[0])) << 24)
13 void store32_bigendian(unsigned char *x
,uint32 u
)
21 uint32
load32_littleendian(const unsigned char *x
)
25 | (((uint32
) (x
[1])) << 8) \
26 | (((uint32
) (x
[2])) << 16) \
27 | (((uint32
) (x
[3])) << 24)
31 void store32_littleendian(unsigned char *x
,uint32 u
)
40 uint64
load64_littleendian(const unsigned char *x
)
44 | (((uint64
) (x
[1])) << 8) \
45 | (((uint64
) (x
[2])) << 16) \
46 | (((uint64
) (x
[3])) << 24)
47 | (((uint64
) (x
[4])) << 32)
48 | (((uint64
) (x
[5])) << 40)
49 | (((uint64
) (x
[6])) << 48)
50 | (((uint64
) (x
[7])) << 56)
54 void store64_littleendian(unsigned char *x
,uint64 u
)