musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/math/scalbln.c
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/scalbln.c
parentb4a07bb469ad5a81ee003b621c362d2e7be38159 (diff)
downloadmusl-405ce58dcf59ecfb3e245fed0b96b1f35fbeaec1.tar.gz
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/scalbln.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月24日 13:00:33 +0000

AltStyle によって変換されたページ (->オリジナル) /