Rev 332 | Rev 338 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 332 | Rev 334 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef __mips_BYTEORDER_H__ |
29 | #ifndef __mips_BYTEORDER_H__ |
30 | #define __mips_BYTEORDER_H__ |
30 | #define __mips_BYTEORDER_H__ |
31 | 31 | ||
32 | /* MIPS is little-endian */ |
- | |
33 | #ifdef BIG_ENDIAN |
32 | #ifdef BIG_ENDIAN |
34 | static inline __u64 u64_le2host(__u64 n) |
33 | static inline __u64 u64_le2host(__u64 n) |
35 | { |
34 | { |
36 | return ((n & 0xff) << 56) | |
35 | return ((n & 0xff) << 56) | |
37 | ((n & 0xff00) << 40) | |
36 | ((n & 0xff00) << 40) | |