OLD | NEW |
1 /* This file is generated automatically by configure */ | 1 /* This file is generated automatically by configure */ |
2 /* It is valid only for the system type x86_64-suse-linux-gnu */ | 2 /* It is valid only for the system type x86_64-unknown-linux-gnu */ |
3 | 3 |
4 #ifndef __BYTEORDER_H | 4 #ifndef __BYTEORDER_H |
5 #define __BYTEORDER_H | 5 #define __BYTEORDER_H |
6 | 6 |
7 /* ntohl and relatives live here */ | 7 /* ntohl and relatives live here */ |
8 #include <arpa/inet.h> | 8 #include <arpa/inet.h> |
9 | 9 |
10 /* Define generic byte swapping functions */ | 10 /* Define generic byte swapping functions */ |
11 #include <byteswap.h> | 11 #include <byteswap.h> |
12 #define swap16(x) bswap_16(x) | 12 #define swap16(x) bswap_16(x) |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x) | 115 (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x) |
116 #define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) | 116 #define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) |
117 #define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \ | 117 #define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \ |
118 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) | 118 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) |
119 #define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \ | 119 #define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \ |
120 (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \ | 120 (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \ |
121 (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \ | 121 (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \ |
122 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) | 122 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) |
123 | 123 |
124 #endif /*__BYTEORDER_H*/ | 124 #endif /*__BYTEORDER_H*/ |
OLD | NEW |