source: trunk/IPs/systemC/Environment/Endianness/src/Endianness_isSameEndianness.cpp @ 129

Last change on this file since 129 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: 209 bytes
Line 
1#include "../include/Endianness.h"
2
3namespace environment {
4namespace endianness {
5
6  bool isSameEndianness (uint32_t cpu_id)
7  {
8    return ((hostEndianness() xor cpuEndianness(cpu_id)) == false);
9  }
10
11};
12};
Note: See TracBrowser for help on using the repository browser.