The Battle for Wesnoth  1.15.0-dev
ieee_754.cpp
Go to the documentation of this file.
1 #include <limits>
2 
3 // This test verifies that floating point numbers are represented in the IEEE 754 format.
4 // Wesnoth requires that.
5 int main()
6 {
7  // Return code zero means success.
8  // Thus, check that the bit representation is *not* what IEEE 754 specifies.
9  bool match = std::numeric_limits<double>::is_iec559;
10  return !match;
11 }
static const char * match(MatchState *ms, const char *s, const char *p)
Definition: lstrlib.cpp:425
int main()
Definition: ieee_754.cpp:5