Make IEEE754 check more robust
authorErik Lindahl <erik@kth.se>
Mon, 7 Jul 2014 11:43:58 +0000 (13:43 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 8 Jul 2014 18:53:10 +0000 (20:53 +0200)
commitea3e8aa8bfdd6865973d09ab852a9c64a6a1d180
tree7d10efdce2eec6803dbc25572ef252bc25e9758a
parent013e8ef66a530c2b6dad4a19d559a6fc9c81ebfb
Make IEEE754 check more robust

This change should prevent compilers from
optimizing away the structure used for checking
strings in the binary by also using it to produce
a return values. There are now also clearer
warnings, and if IEEE754 cannot be detected we
fall by to using the OS versions of erf/erfc()
in double precision. Fixes compiles on Power7.

Change-Id: I8ed834d5b87baf33e03725d2ab93a60a76c34a12
cmake/TestFloatFormat.c
cmake/gmxTestFloatFormat.cmake
src/gromacs/math/utilities.c