IT++ Logo

misc.cpp

Go to the documentation of this file.
00001 
00030 #include <itpp/base/math/misc.h>
00031 
00032 
00033 namespace itpp {
00034 
00035   std::string itpp_version(void)
00036   {
00037 #ifdef PACKAGE_VERSION
00038     return std::string(PACKAGE_VERSION);
00039 #else
00040     return std::string("Warning: Version unknown!");
00041 #endif
00042   }
00043 
00044   bool check_big_endianness()
00045   {
00046     int i = 1;
00047     char *p = (char *) &i;
00048     if (p[0] == 1) // Lowest address contains the least significant byte
00049       return false; // LITTLE_ENDIAN
00050     else
00051       return true; // BIG_ENDIAN
00052   }
00053 
00054 } //namespace itpp
SourceForge Logo

Generated on Sat Apr 19 10:57:51 2008 for IT++ by Doxygen 1.5.5