00001 00029 #include <itpp/base/math/misc.h> 00030 00031 #ifndef _MSC_VER 00032 # include <itpp/config.h> 00033 #else 00034 # include <itpp/config_msvc.h> 00035 #endif 00036 00037 00038 namespace itpp 00039 { 00040 00041 std::string itpp_version(void) 00042 { 00043 #ifdef PACKAGE_VERSION 00044 return std::string(PACKAGE_VERSION); 00045 #else 00046 return std::string("Warning: Version unknown!"); 00047 #endif 00048 } 00049 00050 bool is_bigendian() 00051 { 00052 int i = 1; 00053 char *p = reinterpret_cast<char *>(&i); 00054 if (p[0] == 1) // Lowest address contains the least significant byte 00055 return false; // LITTLE_ENDIAN 00056 else 00057 return true; // BIG_ENDIAN 00058 } 00059 00060 } //namespace itpp
Generated on Sat Jul 9 2011 15:21:30 for IT++ by Doxygen 1.7.4