Changeset ffc277e in mainline for arch/mips/include/byteorder.h
- Timestamp:
- 2005-09-10T00:52:13Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3a6c8e5
- Parents:
- b02e5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/include/byteorder.h
rb02e5d1 rffc277e 31 31 32 32 /* MIPS is little-endian */ 33 #define native_le2host(n) n 33 #ifdef BIG_ENDIAN 34 static inline __native native_le2host(__native n) 35 { 36 return ((n & 0xff) << 24) | 37 ((n & 0xff00) << 8) | 38 ((n & 0xff0000) >> 8) | 39 ((n & 0xff000000) >> 24); 40 } 41 #else 42 # define native_le2host(n) n 43 #endif 34 44 35 45 #endif
Note:
See TracChangeset
for help on using the changeset viewer.