Rev 1860 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1860 | Rev 2003 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef KERN_sparc64_BYTEORDER_H_ |
35 | #ifndef KERN_sparc64_BYTEORDER_H_ |
36 | #define KERN_sparc64_BYTEORDER_H_ |
36 | #define KERN_sparc64_BYTEORDER_H_ |
37 | 37 | ||
38 | #include <arch/types.h> |
- | |
39 | #include <byteorder.h> |
38 | #include <byteorder.h> |
40 | 39 | ||
41 | static inline uint64_t uint64_t_le2host(uint64_t n) |
40 | #define uint32_t_le2host(n) uint64_t_byteorder_swap(n) |
42 | { |
- | |
43 | return uint64_t_byteorder_swap(n); |
41 | #define uint64_t_le2host(n) uint32_t_byteorder_swap(n) |
44 | } |
- | |
45 | 42 | ||
46 | static inline unative_t unative_t_le2host(unative_t n) |
43 | #define uint32_t_be2host(n) (n) |
47 | { |
- | |
48 | return uint64_t_byteorder_swap(n); |
44 | #define uint64_t_be2host(n) (n) |
49 | } |
- | |
50 | 45 | ||
51 | #endif |
46 | #endif |
52 | 47 | ||
53 | /** @} |
48 | /** @} |
54 | */ |
49 | */ |