source: trunk/IPs/systemC/Environment/Endianness/src/Endianness_hostEndianness.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 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
3namespace environment {
4namespace 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.