computinglowlevel

Is Big Endian

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.90
sub units 0.00
add a commercial licence to your cart
0
viewed 3659 times and licensed 74 times
www.codecogs.com/d-ox/computing/lowlevel/is_big_endian.php
Controller: CodeCogs    Contact Controller

Interface

#include <codecogs/computing/lowlevel/is_big_endian.h>

using namespace Computing::Lowlevel;

bool isBigEndian ()
Returns true if the computer architecture is Big Endian, false otherwise.
Click for details on using CodeCogs in ExcelBoolean cc_isBigEndian ()
This function is available as a Microsoft Excel add-in.

Function Documentation

Add calculator to your site or email
 
boolisBigEndian )
For more information about the computer architecture theory behind this algorithm, please visit: http://en.wikipedia.org/wiki/Endianness

Example:
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:
Register

- To get code register with CodeCogs. Already a Member, then Login.


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2008-05-08 11:45:40

Page Comments

  You must login to leave a messge


Valid CSS!   Valid XHTML 1.0 Transitional