17 #ifndef FW_BASIC_TYPES_HPP
18 #define FW_BASIC_TYPES_HPP
21 #if !defined(SKIP_FLOAT_IEEE_754_COMPLIANCE) || !SKIP_FLOAT_IEEE_754_COMPLIANCE
22 static_assert((std::numeric_limits<float>::is_iec559 ==
true) && (std::numeric_limits<float>::radix == 2) &&
23 (std::numeric_limits<float>::digits == 24) && (std::numeric_limits<float>::max_exponent == 128),
24 "The 32-bit floating point type does not conform to the IEEE-754 standard.");
26 static_assert((std::numeric_limits<double>::is_iec559 ==
true) && (std::numeric_limits<double>::radix == 2) &&
27 (std::numeric_limits<double>::digits == 53) && (std::numeric_limits<double>::max_exponent == 1024),
28 "The 64-bit floating point type does not conform to the IEEE-754 standard.");