Changeset 39f1c86 in mainline
- Timestamp:
- 2018-02-24T19:51:28Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e0a5d4c
- Parents:
- 5ef3afd
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-02-24 18:43:51)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-02-24 19:51:28)
- Location:
- uspace/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/byteorder.h
r5ef3afd r39f1c86 89 89 #define host2uint8_t_be(n) (n) 90 90 #define host2uint8_t_le(n) (n) 91 #define host2uint8_t_le(n) (n) 92 93 #define int8_t_le2host(n) uint8_t_le2host(n) 94 #define int16_t_le2host(n) uint16_t_le2host(n) 95 #define int32_t_le2host(n) uint32_t_le2host(n) 96 #define int64_t_le2host(n) uint64_t_le2host(n) 97 98 #define int8_t_be2host(n) uint8_t_be2host(n) 99 #define int16_t_be2host(n) uint16_t_be2host(n) 100 #define int32_t_be2host(n) uint32_t_be2host(n) 101 #define int64_t_be2host(n) uint64_t_be2host(n) 102 103 #define host2int8_t_le(n) host2uint8_t_le(n) 104 #define host2int16_t_le(n) host2uint16_t_le(n) 105 #define host2int32_t_le(n) host2uint32_t_le(n) 106 #define host2int64_t_le(n) host2uint64_t_le(n) 107 108 #define host2int8_t_be(n) host2uint8_t_be(n) 109 #define host2int16_t_be(n) host2uint16_t_be(n) 110 #define host2int32_t_be(n) host2uint32_t_be(n) 111 #define host2int64_t_be(n) host2uint64_t_be(n) 91 112 92 113 static inline uint64_t uint64_t_byteorder_swap(uint64_t n) -
uspace/lib/pcm/src/format.c
r5ef3afd r39f1c86 41 41 42 42 #include "format.h" 43 44 #define int8_t_le2host(x) (x)45 #define host2int8_t_le(x) (x)46 47 #define int16_t_le2host(x) uint16_t_le2host(x)48 #define host2int16_t_le(x) host2uint16_t_le(x)49 50 #define int32_t_le2host(x) uint32_t_le2host(x)51 #define host2int32_t_le(x) host2uint32_t_le(x)52 53 #define int8_t_be2host(x) (x)54 #define host2int8_t_be(x) (x)55 56 #define int16_t_be2host(x) uint16_t_be2host(x)57 #define host2int16_t_be(x) host2uint16_t_be(x)58 59 #define int32_t_be2host(x) uint32_t_be2host(x)60 #define host2int32_t_be(x) host2uint32_t_be(x)61 43 62 44 // TODO float endian?
Note:
See TracChangeset
for help on using the changeset viewer.