diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-03-02 22:35:37 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-03-02 22:35:37 -0500 |
commit | 405ce58dcf59ecfb3e245fed0b96b1f35fbeaec1 (patch) | |
tree | 439834dd49850e97dd9f3761add8d65bdab6f37d /src/math/e_acos.c | |
parent | b4a07bb469ad5a81ee003b621c362d2e7be38159 (diff) | |
download | musl-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/e_acos.c')
0 files changed, 0 insertions, 0 deletions