Changeset 31282f9 in mainline
- Timestamp:
- 2006-05-07T15:54:38Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 381465e
- Parents:
- 2bb8648
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/include/byteorder.h
r2bb8648 r31282f9 33 33 #include <byteorder.h> 34 34 35 #define BIG_ENDIAN 36 35 37 static inline __u64 __u64_le2host(__u64 n) 36 38 { -
arch/ppc64/include/byteorder.h
r2bb8648 r31282f9 33 33 #include <byteorder.h> 34 34 35 #define BIG_ENDIAN 36 35 37 static inline __u64 __u64_le2host(__u64 n) 36 38 { -
genarch/src/fb/fb.c
r2bb8648 r31282f9 86 86 unsigned int startbyte = POINTPOS(x, y); 87 87 88 #ifdef BIG_ENDIAN 88 89 fbaddress[startbyte] = RED(color, 8); 89 90 fbaddress[startbyte + 1] = GREEN(color, 8); 90 91 fbaddress[startbyte + 2] = BLUE(color, 8); 92 #else 93 fbaddress[startbyte + 2] = RED(color, 8); 94 fbaddress[startbyte + 1] = GREEN(color, 8); 95 fbaddress[startbyte + 0] = BLUE(color, 8); 96 #endif 91 97 } 92 98 … … 96 102 unsigned int startbyte = POINTPOS(x, y); 97 103 104 #ifdef BIG_ENDIAN 98 105 return fbaddress[startbyte] << 16 | fbaddress[startbyte + 1] << 8 | fbaddress[startbyte + 2]; 106 #else 107 return fbaddress[startbyte + 2] << 16 | fbaddress[startbyte + 1] << 8 | fbaddress[startbyte + 0]; 108 #endif 99 109 } 100 110
Note:
See TracChangeset
for help on using the changeset viewer.