about summary refs log tree commit diff
path: root/src/math/i386
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-03-02 22:35:37 -0500
committerRich Felker <dalias@aerifal.cx>2012-03-02 22:35:37 -0500
commit405ce58dcf59ecfb3e245fed0b96b1f35fbeaec1 (patch)
tree439834dd49850e97dd9f3761add8d65bdab6f37d /src/math/i386
parentb4a07bb469ad5a81ee003b621c362d2e7be38159 (diff)
downloadmusl-405ce58dcf59ecfb3e245fed0b96b1f35fbeaec1.tar.gz
musl-405ce58dcf59ecfb3e245fed0b96b1f35fbeaec1.tar.xz
musl-405ce58dcf59ecfb3e245fed0b96b1f35fbeaec1.zip
fix nan/infinity macros in math.h, etc.
the previous version not only failed to work in c++, but also failed
to produce constant expressions, making the macros useless as
initializers for objects of static storage duration.

gcc 3.3 and later have builtins for these, which sadly seem to be the
most "portable" solution. the alternative definitions produce
exceptions (for NAN) and compiler warnings (for INFINITY) on newer
versions of gcc.
Diffstat (limited to 'src/math/i386')
0 files changed, 0 insertions, 0 deletions