I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 0.31
sub units 0.00
+
0

Is Big Endian

viewed 3813 times and licensed 87 times
Returns true if the computer architecture is Big Endian, false otherwise.
Controller: CodeCogs

Interface

C++
Excel

IsBigEndian

 
boolisBigEndian )
For more information about the computer architecture theory behind this algorithm, please visit: http://en.wikipedia.org/wiki/Endianness

Example 1

The following program displays whether the computer architecture is Big Endian or not (the opposite would most probably be Little Endian, but there are also other non-Big Endian architectures).
#include <iostream>
#include <codecogs/computing/lowlevel/is_big_endian.h>
 
using namespace std;
 
int main() 
{
  cout << "Computer architecture is ";
  if (Computing::Lowlevel::isBigEndian()) cout << "Big Endian.";
  else cout << "Little Endian (or other non-Big Endian).";
  cout << endl;
  return 0;
}

Authors

Lucian Bentea (August 2005)
Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.