Changeset 7f1c620 in mainline for arch/ppc32/include/byteorder.h
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/include/byteorder.h
r991779c5 r7f1c620 41 41 #define BIG_ENDIAN 42 42 43 static inline __u64 __u64_le2host(__u64n)43 static inline uint64_t uint64_t_le2host(uint64_t n) 44 44 { 45 return __u64_byteorder_swap(n);45 return uint64_t_byteorder_swap(n); 46 46 } 47 47 48 48 49 /** Convert little-endian __native to host __native49 /** Convert little-endian unative_t to host unative_t 50 50 * 51 * Convert little-endian __nativeparameter to host endianess.51 * Convert little-endian unative_t parameter to host endianess. 52 52 * 53 * @param n Little-endian __nativeargument.53 * @param n Little-endian unative_t argument. 54 54 * 55 55 * @return Result in host endianess. 56 56 * 57 57 */ 58 static inline __native __native_le2host(__nativen)58 static inline unative_t unative_t_le2host(unative_t n) 59 59 { 60 __addressv;60 uintptr_t v; 61 61 62 62 asm volatile (
Note:
See TracChangeset
for help on using the changeset viewer.