- 09 8月, 2012 1 次提交
-
-
由 nsz 提交于
exp(inf), exp(-inf), exp(nan) used to raise wrong flags
-
- 20 3月, 2012 1 次提交
-
-
由 Rich Felker 提交于
exponents (base 2) near 16383 were broken due to (1) wrong cutoff, and (2) inability to fit the necessary range of scalings into a long double value. as a solution, we fall back to using frndint/fscale for insanely large exponents, and also have to special-case infinities here to avoid inf-inf generating nan. thankfully the costly code never runs in normal usage cases.
-
- 19 3月, 2012 3 次提交
-
-
由 Rich Felker 提交于
up to 30% faster exp2 by avoiding slow frndint and fscale functions. expm1 also takes a much more direct path for small arguments (the expected usage case).
-
由 Rich Felker 提交于
infinities were getting converted into nans. the new code simply tests for infinity and replaces it with a large magnitude value of the same sign. also, the fcomi instruction is apparently not part of the i387 instruction set, so avoid using it.
-
由 Rich Felker 提交于
-