musl/src/math/exp2l.c, branch master musl - an implementation of the standard library for Linux-based systems math: add ld128 exp2l based on the freebsd implementation 2015年03月11日T22:54:50+00:00 Szabolcs Nagy nsz@port70.net 2015年03月09日T12:17:25+00:00 53cfe0c61a136c12376a8f32d616de1d68227181 Changed the special case handling and bit manipulation to better match the double version.
Changed the special case handling and bit manipulation to better
match the double version.
math: fix underflow in exp*.c and long double handling in exp2l 2013年09月05日T11:30:08+00:00 Szabolcs Nagy nsz@port70.net 2013年09月04日T07:51:11+00:00 39c910fb061114e6aa5c3bf2c94b1d7262d62221 * don't care about inexact flag * use double_t and float_t (faster, smaller, more precise on x86) * exp: underflow when result is zero or subnormal and not -inf * exp2: underflow when result is zero or subnormal and not exact * expm1: underflow when result is zero or subnormal * expl: don't underflow on -inf * exp2: fix incorrect comment * expm1: simplify special case handling and overflow properly * expm1: cleanup final scaling and fix negative left shift ub (twopk)
* don't care about inexact flag
* use double_t and float_t (faster, smaller, more precise on x86)
* exp: underflow when result is zero or subnormal and not -inf
* exp2: underflow when result is zero or subnormal and not exact
* expm1: underflow when result is zero or subnormal
* expl: don't underflow on -inf
* exp2: fix incorrect comment
* expm1: simplify special case handling and overflow properly
* expm1: cleanup final scaling and fix negative left shift ub (twopk)
math: cleanup exp2.c exp2f.c and exp2l.c 2012年11月17日T22:39:39+00:00 Szabolcs Nagy nsz@port70.net 2012年11月17日T22:39:39+00:00 159c7655d06f04aa56a57385d633699c4c63d72c * old code relied on sign extension on right shift * exp2l ld64 wrapper was wrong * use scalbn instead of bithacks
* old code relied on sign extension on right shift
* exp2l ld64 wrapper was wrong
* use scalbn instead of bithacks
fix loads of missing const in new libm, and some global vars (?!) in powl 2012年03月18日T05:58:28+00:00 Rich Felker dalias@aerifal.cx 2012年03月18日T05:58:28+00:00 9e2a895aaaa4a3985e94ae4f3e24c1af65f9bb34
first commit of the new libm! 2012年03月13日T05:17:53+00:00 Rich Felker dalias@aerifal.cx 2012年03月13日T05:17:53+00:00 b69f695acedd4ce2798ef9ea28d834ceccc789bd thanks to the hard work of Szabolcs Nagy (nsz), identifying the best (from correctness and license standpoint) implementations from freebsd and openbsd and cleaning them up! musl should now fully support c99 float and long double math functions, and has near-complete complex math support. tgmath should also work (fully on gcc-compatible compilers, and mostly on any c99 compiler). based largely on commit 0376d44a890fea261506f1fc63833e7a686dca19 from nsz's libm git repo, with some additions (dummy versions of a few missing long double complex functions, etc.) by me. various cleanups still need to be made, including re-adding (if they're correct) some asm functions that were dropped.
thanks to the hard work of Szabolcs Nagy (nsz), identifying the best
(from correctness and license standpoint) implementations from freebsd
and openbsd and cleaning them up! musl should now fully support c99
float and long double math functions, and has near-complete complex
math support. tgmath should also work (fully on gcc-compatible
compilers, and mostly on any c99 compiler).
based largely on commit 0376d44a890fea261506f1fc63833e7a686dca19 from
nsz's libm git repo, with some additions (dummy versions of a few
missing long double complex functions, etc.) by me.
various cleanups still need to be made, including re-adding (if
they're correct) some asm functions that were dropped.

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