Avoid clang/32 optimization affecting IEEE endian detection
authorErik Lindahl <erik@kth.se>
Sat, 12 Jul 2014 08:10:36 +0000 (10:10 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 13 Jul 2014 03:20:43 +0000 (05:20 +0200)
commit8dc593f87d9def8b87491ecd84102e869c4fe698
tree3150f1434df094baf48a4fbee7facbffa2c6cbfa
parente1f722a51df2a4417140efabb84452b48ba04117
Avoid clang/32 optimization affecting IEEE endian detection

This turns the detection code into a c++ file, moves the
structure to a global one and adds volatile specifiers.
This should hopefully prevent any standard-adhering
compiler from touching the data.

Change-Id: I6f4b86ddf6b0567655466e0877bb1ba39a45ce4e
cmake/TestFloatFormat.c [deleted file]
cmake/TestFloatFormat.cpp [new file with mode: 0644]
cmake/gmxTestFloatFormat.cmake