Rev 1819 | Rev 2002 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1819 | Rev 1888 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | * @{ |
30 | * @{ |
| 31 | */ |
31 | */ |
| 32 | /** @file |
32 | /** @file |
| 33 | */ |
33 | */ |
| 34 | 34 | ||
| 35 | #ifndef __BYTEORDER_H__ |
35 | #ifndef KERN_BYTEORDER_H_ |
| 36 | #define __BYTEORDER_H__ |
36 | #define KERN_BYTEORDER_H_ |
| 37 | 37 | ||
| 38 | static inline uint64_t uint64_t_byteorder_swap(uint64_t n) |
38 | static inline uint64_t uint64_t_byteorder_swap(uint64_t n) |
| 39 | { |
39 | { |
| 40 | return ((n & 0xff) << 56) | |
40 | return ((n & 0xff) << 56) | |
| 41 | ((n & 0xff00) << 40) | |
41 | ((n & 0xff00) << 40) | |