OSDN Git Service

write floating point limit constants to 21 significant decimal places
authorRich Felker <dalias@aerifal.cx>
Wed, 20 Nov 2013 22:40:33 +0000 (17:40 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 20 Nov 2013 22:40:33 +0000 (17:40 -0500)
commit46db37289f917e23877a0e0df88cbb150805bc97
treee39e35854721b6912e3484207aeba5991dbc9ed6
parentd8e8f1464cb02d6a62f01c7153ca4d7b0cd5c5e6
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.
include/float.h
include/math.h