Lines 32-43
Link Here
|
32 |
* Oh, and one more thing -- they take *pointers*, not actual ints |
32 |
* Oh, and one more thing -- they take *pointers*, not actual ints |
33 |
*/ |
33 |
*/ |
34 |
|
34 |
|
35 |
#define LE_16(val) (GINT16_FROM_LE (*((u_int16_t*)(val)))) |
35 |
#define LE_16(val) (GINT16_FROM_LE (*((uint16_t*)(val)))) |
36 |
#define BE_16(val) (GINT16_FROM_BE (*((u_int16_t*)(val)))) |
36 |
#define BE_16(val) (GINT16_FROM_BE (*((uint16_t*)(val)))) |
37 |
#define LE_32(val) (GINT32_FROM_LE (*((u_int32_t*)(val)))) |
37 |
#define LE_32(val) (GINT32_FROM_LE (*((uint32_t*)(val)))) |
38 |
#define BE_32(val) (GINT32_FROM_BE (*((u_int32_t*)(val)))) |
38 |
#define BE_32(val) (GINT32_FROM_BE (*((uint32_t*)(val)))) |
39 |
|
39 |
|
40 |
#define LE_64(val) (GINT64_FROM_LE (*((u_int64_t*)(val)))) |
40 |
#define LE_64(val) (GINT64_FROM_LE (*((uint64_t*)(val)))) |
41 |
#define BE_64(val) (GINT64_FROM_BE (*((u_int64_t*)(val)))) |
41 |
#define BE_64(val) (GINT64_FROM_BE (*((uint64_t*)(val)))) |
42 |
|
42 |
|
43 |
#endif /* BSWAP_H_INCLUDED */ |
43 |
#endif /* BSWAP_H_INCLUDED */ |