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/finitef.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年11月20日 17:40:33 -0500
committerRich Felker <dalias@aerifal.cx>2013年11月20日 17:40:33 -0500
commit46db37289f917e23877a0e0df88cbb150805bc97 (patch)
treee39e35854721b6912e3484207aeba5991dbc9ed6 /src/math/finitef.c
parentd8e8f1464cb02d6a62f01c7153ca4d7b0cd5c5e6 (diff)
downloadmusl-46db37289f917e23877a0e0df88cbb150805bc97.tar.gz
write floating point limit constants to 21 significant decimal places
this is enough to produce the correct value even if the constant is interpreted as 80-bit extended precision, which matters on archs with excess precision (FLT_EVAL_METHOD==2) under at least some interpretations of the C standard. the shorter representations, while correct if converted to the nominal precision at translation time, could produce an incorrect value at extended precision, yielding results such as (double)DBL_MAX != DBL_MAX.
Diffstat (limited to 'src/math/finitef.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 23:58:21 +0000

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