* libc/include/machine/ieeefp.h: Comment about new configuration

macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
	* libm/common/fdlib.h: Define new macros for testing floats.
	* libm/common/sf_*: Use them.
	* libm/math/ef_*: Likewise.
	* libm/math/sf_*: Likewise.
This commit is contained in:
Richard Sandiford
2001-04-04 13:33:01 +00:00
parent 51fc3813e9
commit 16740220a2
41 changed files with 306 additions and 166 deletions

View File

@ -37,7 +37,7 @@ ln2 = 6.9314718246e-01; /* 0x3f317218 */
if(hx<0x3f800000) { /* x < 1 */
return (x-x)/(x-x);
} else if(hx >=0x4d800000) { /* x > 2**28 */
if(hx >=0x7f800000) { /* x is inf of NaN */
if(!FLT_UWORD_IS_FINITE(hx)) { /* x is inf of NaN */
return x+x;
} else
return __ieee754_logf(x)+ln2; /* acosh(huge)=log(2x) */