Changeset f772105e in mainline for uspace/lib/libc/include/byteorder.h
- Timestamp:
- 2008-10-26T17:13:49Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 700eaa9
- Parents:
- b1178d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/byteorder.h
rb1178d0 rf772105e 53 53 #define uint64_t_be2host(n) (n) 54 54 55 #define host2uint16_t_le(n) uint16_t_byteorder_swap(n) 56 #define host2uint32_t_le(n) uint32_t_byteorder_swap(n) 57 #define host2uint64_t_le(n) uint64_t_byteorder_swap(n) 58 59 #define host2uint16_t_be(n) (n) 60 #define host2uint32_t_be(n) (n) 61 #define host2uint64_t_be(n) (n) 62 55 63 #else 56 64 … … 62 70 #define uint32_t_be2host(n) uint32_t_byteorder_swap(n) 63 71 #define uint64_t_be2host(n) uint64_t_byteorder_swap(n) 72 73 #define host2uint16_t_le(n) (n) 74 #define host2uint32_t_le(n) (n) 75 #define host2uint64_t_le(n) (n) 76 77 #define host2uint16_t_be(n) uint16_t_byteorder_swap(n) 78 #define host2uint32_t_be(n) uint32_t_byteorder_swap(n) 79 #define host2uint64_t_be(n) uint64_t_byteorder_swap(n) 64 80 65 81 #endif
Note:
See TracChangeset
for help on using the changeset viewer.