| Linux kernel & device driver programming |
| [ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] |
1 #ifndef BYTEORDER_H 2 #define BYTEORDER_H 3 4 #include <sys/types.h> 5 6 #ifndef BYTE_ORDER 7 # error "Aiee: BYTE_ORDER not defined\n"; 8 #endif 9 10 #define SWAP2(x) (((x>>8) & 0x00ff) |\ 11 ((x<<8) & 0xff00)) 12 13 #define SWAP4(x) (((x>>24) & 0x000000ff) |\ 14 ((x>>8) & 0x0000ff00) |\ 15 ((x<<8) & 0x00ff0000) |\ 16 ((x<<24) & 0xff000000)) 17 18 #endif /* BYTEORDER_H */ 19
| This page was automatically generated by the LXR engine. |