37bool ByteOrder::is_host_endian_checked =
false;
38bool ByteOrder::host_big_endian =
false;
40bool ByteOrder::is_host_big_endian()
44 char *p_one = (
char *) (&one);
46 if (p_one[0] == 1 && p_one[1] == 0 && p_one[2] == 0 && p_one[3] == 0) {
63 if (
Util::goodf(&f) && f > 0 && f < 65535.0 && f == floor(f)) {
static bool is_host_big_endian()
static bool is_host_endian_checked
static bool host_big_endian
static bool is_float_big_endian(float small_number)
given a small floating number, return whether the number is in big endian or not.
static int goodf(const float *p_f)
Check whether a number is a good float.