IT++ Logo
misc.cpp
Go to the documentation of this file.
1 
29 #include <itpp/base/math/misc.h>
30 
31 #ifndef _MSC_VER
32 # include <itpp/config.h>
33 #else
34 # include <itpp/config_msvc.h>
35 #endif
36 
37 
38 namespace itpp
39 {
40 
41 std::string itpp_version(void)
42 {
43 #ifdef PACKAGE_VERSION
44  return std::string(PACKAGE_VERSION);
45 #else
46  return std::string("Warning: Version unknown!");
47 #endif
48 }
49 
51 {
52  int i = 1;
53  char *p = reinterpret_cast<char *>(&i);
54  if (p[0] == 1) // Lowest address contains the least significant byte
55  return false; // LITTLE_ENDIAN
56  else
57  return true; // BIG_ENDIAN
58 }
59 
60 } //namespace itpp
SourceForge Logo

Generated on Sat May 25 2013 16:32:19 for IT++ by Doxygen 1.8.2