Changeset f3ade6c in mainline
- Timestamp:
- 2005-09-11T15:13:53Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2b3e0738
- Parents:
- 61a9bbe
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/byteorder.h
r61a9bbe rf3ade6c 31 31 32 32 /* AMD64 is little-endian */ 33 #define native_le2host(n) (n)34 #define u64_le2host(n) (n)33 #define __native_le2host(n) (n) 34 #define __u64_le2host(n) (n) 35 35 36 36 #endif -
arch/ia32/include/byteorder.h
r61a9bbe rf3ade6c 31 31 32 32 /* IA-32 is little-endian */ 33 #define native_le2host(n) (n)34 #define u64_le2host(n) (n)33 #define __native_le2host(n) (n) 34 #define __u64_le2host(n) (n) 35 35 36 36 #endif -
arch/ia64/include/byteorder.h
r61a9bbe rf3ade6c 31 31 32 32 /* IA-64 is little-endian */ 33 #define native_le2host(n) (n)34 #define u64_le2host(n) (n)33 #define __native_le2host(n) (n) 34 #define __u64_le2host(n) (n) 35 35 36 36 #endif -
arch/mips/include/byteorder.h
r61a9bbe rf3ade6c 30 30 #define __mips_BYTEORDER_H__ 31 31 32 #include <arch/types.h> 33 #include <byteorder.h> 34 32 35 #ifdef BIG_ENDIAN 33 static inline __u64 u64_le2host(__u64 n)36 static inline __u64 __u64_le2host(__u64 n) 34 37 { 35 return ((n & 0xff) << 56) | 36 ((n & 0xff00) << 40) | 37 ((n & 0xff0000) << 24) | 38 ((n & 0xff000000LL) << 8) | 39 ((n & 0xff00000000LL) >>8) | 40 ((n & 0xff0000000000LL) >> 24) | 41 ((n & 0xff000000000000LL) >> 40) | 42 ((n & 0xff00000000000000LL) >> 56); 38 return __u64_byteorder_swap(n); 43 39 } 44 40 45 static inline __native native_le2host(__native n)41 static inline __native __native_le2host(__native n) 46 42 { 47 return ((n & 0xff) << 24) | 48 ((n & 0xff00) << 8) | 49 ((n & 0xff0000) >> 8) | 50 ((n & 0xff000000) >> 24); 43 return __u32_byteroder_swap(n); 51 44 } 45 52 46 #else 53 # define native_le2host(n) (n)54 # define u64_le2host(n) (n)47 # define __native_le2host(n) (n) 48 # define __u64_le2host(n) (n) 55 49 #endif 56 50 -
arch/ppc/include/byteorder.h
r61a9bbe rf3ade6c 31 31 32 32 #include <arch/types.h> 33 #include <byteorder.h> 34 35 static inline __u64 __u64_le2host(__u64 n) 36 { 37 return __u64_byteorder_swap(n); 38 } 39 33 40 34 41 /** Convert little-endian __native to host __native … … 41 48 * 42 49 */ 43 static inline __u64 u64_le2host(__u64 n) 44 { 45 return ((n & 0xff) << 56) | 46 ((n & 0xff00) << 40) | 47 ((n & 0xff0000) << 24) | 48 ((n & 0xff000000LL) << 8) | 49 ((n & 0xff00000000LL) >>8) | 50 ((n & 0xff0000000000LL) >> 24) | 51 ((n & 0xff000000000000LL) >> 40) | 52 ((n & 0xff00000000000000LL) >> 56); 53 } 54 static inline __native native_le2host(__native n) 50 static inline __native __native_le2host(__native n) 55 51 { 56 52 __address v; -
src/debug/symtab.c
r61a9bbe rf3ade6c 40 40 41 41 for (i=1;symbol_table[i].address_le;++i) { 42 if (addr < u64_le2host(symbol_table[i].address_le))42 if (addr < __u64_le2host(symbol_table[i].address_le)) 43 43 break; 44 44 } 45 if (addr >= u64_le2host(symbol_table[i-1].address_le))45 if (addr >= __u64_le2host(symbol_table[i-1].address_le)) 46 46 return symbol_table[i-1].symbol_name; 47 47 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.