Last change
on this file since 120 was
81,
checked in by rosiere, 17 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
245 bytes
|
Line | |
---|
1 | #include "../include/Endianness.h" |
---|
2 | |
---|
3 | namespace environment { |
---|
4 | namespace endianness { |
---|
5 | |
---|
6 | bool hostEndianness () |
---|
7 | { |
---|
8 | TestEndian test; |
---|
9 | |
---|
10 | test.word = 0x000000FF; |
---|
11 | |
---|
12 | return (test.bytes.byte1 == 0xFF)?LittleEndian:BigEndian; |
---|
13 | } |
---|
14 | |
---|
15 | }; |
---|
16 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.