misc.cpp
Go to the documentation of this file.
#include <itpp/base/math/misc.h>
#ifndef _MSC_VER
# include <itpp/config.h>
#else
# include <itpp/config_msvc.h>
#endif
namespace itpp
{
std::string itpp_version(void)
{
#ifdef PACKAGE_VERSION
return std::string(PACKAGE_VERSION);
#else
return std::string("Warning: Version unknown!");
#endif
}
bool is_bigendian()
{
int i = 1;
char *p = reinterpret_cast<char *>(&i);
if (p[0] == 1) // Lowest address contains the least significant byte
return false; // LITTLE_ENDIAN
else
return true; // BIG_ENDIAN
}
} //namespace itpp
itpp::is_bigendian
bool is_bigendian()
Returns true if machine endianness is BIG_ENDIAN.
Definition: misc.cpp:50
misc.h
Miscellaneous functions - header file.
itpp::itpp_version
std::string itpp_version(void)
Returns IT++ library version number, e.g. "3.7.1".
Definition: misc.cpp:41
itpp
itpp namespace
Definition: itmex.h:36

Generated on Thu Aug 20 2015 21:02:50 for IT++ by Doxygen 1.8.9.1