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 
00036 std::string itpp_version(void)
00037 {
00038 #ifdef PACKAGE_VERSION
00039   return std::string(PACKAGE_VERSION);
00040 #else
00041   return std::string("Warning: Version unknown!");
00042 #endif
00043 }
00044 
00045 bool check_big_endianness()
00046 {
00047   int i = 1;
00048   char *p = (char *) & i;
00049   if (p[0] == 1) // Lowest address contains the least significant byte
00050     return false; // LITTLE_ENDIAN
00051   else
00052     return true; // BIG_ENDIAN
00053 }
00054 
00055 } //namespace itpp
SourceForge Logo

Generated on Sun Jul 26 08:36:50 2009 for IT++ by Doxygen 1.5.9