Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
itpp
base
math
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
50
bool
is_bigendian
()
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
Generated on Fri Mar 21 2014 17:14:12 for IT++ by
Doxygen
1.8.1.2