CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

ComputingLowlevel

Is Big Endian

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.26
sub units 0.00
add a commercial licence to your cart
0
viewed 3744 times and licensed 81 times

Returns true if the computer architecture is Big Endian, false otherwise.

Controller: CodeCogs  Contact Controller
+View other versions (5)
Contents hide toc
buy now     get GPL     add to cart

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.
ExcelBoolean cc_lowlevelIsBigEndian ()
This function is available as a Microsoft Excel add-in.

Function Documentation

Is Big Endian Calculator
  
Add calculator to website or email
 
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:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

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


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 7 Sep 08 @ 14:14     Page Rendered: 2010-03-14 04:00:18

Valid CSS!   Valid XHTML 1.0 Transitional