3ffff4ba | 03-Jun-2013 |
Steve Kargl <kargl@FreeBSD.org> |
ld80 and ld128 implementations of expm1l(). This code started life as a fairly faithful implementation of the algorithm found in
PTP Tang, "Table-driven implementation of the Expm1 function in IEEE
ld80 and ld128 implementations of expm1l(). This code started life as a fairly faithful implementation of the algorithm found in
PTP Tang, "Table-driven implementation of the Expm1 function in IEEE floating-point arithmetic," ACM Trans. Math. Soft., 18, 211-222 (1992).
Over the last 18-24 months, the code has under gone significant optimization and testing.
Reviewed by: bde Obtained from: bde (most of the optimizations)
show more ...
|
8cc74771 | 03-Jun-2013 |
Steve Kargl <kargl@FreeBSD.org> |
ld80/s_expl.c:
* Use integral numerical constants, and let the compiler do the conversion to long double.
ld128/s_expl.c:
* Use integral numerical constants, and let the compiler do the conver
ld80/s_expl.c:
* Use integral numerical constants, and let the compiler do the conversion to long double.
ld128/s_expl.c:
* Use integral numerical constants, and let the compiler do the conversion to long double. * Use the ENTERI/RETURNI macros, which are no-ops on ld128. This however makes the ld80 and ld128 identical.
Reviewed by: bde (as part of larger diff)
show more ...
|
1783063f | 03-Jun-2013 |
Steve Kargl <kargl@FreeBSD.org> |
ld80/s_expl.c:
* In the special case x = -Inf or -NaN, use a micro-optimization to eliminate the need to access u.xbits.man.
* Fix an off-by-one for small arguments |x| < 0x1p-65.
ld128/s_expl.c
ld80/s_expl.c:
* In the special case x = -Inf or -NaN, use a micro-optimization to eliminate the need to access u.xbits.man.
* Fix an off-by-one for small arguments |x| < 0x1p-65.
ld128/s_expl.c:
* In the special case x = -Inf or -NaN, use a micro-optimization to eliminate the need to access u.xbits.manh and u.xbits.manl.
* Fix an off-by-one for small arguments |x| < 0x1p-114.
Obtained from: bde
show more ...
|
31407861 | 03-Jun-2013 |
Steve Kargl <kargl@FreeBSD.org> |
ld80/s_expl.c:
* Update the evaluation of the polynomial. This allows the removal of the now unused variables t23 and t45.
ld128/s_expl.c:
* Update the evaluation of the polynomial and the inte
ld80/s_expl.c:
* Update the evaluation of the polynomial. This allows the removal of the now unused variables t23 and t45.
ld128/s_expl.c:
* Update the evaluation of the polynomial and the intermediate result t. This update allows several numerical constants to be written as double rather than long double constants. Update the constants as appropriate.
Obtained from: bde
show more ...
|
bb23de67 | 03-Jun-2013 |
Steve Kargl <kargl@FreeBSD.org> |
* Rename the polynomial coefficients from P2, P3, ... to A2, A3, .... The names now coincide with the name used in PTP Tang's paper.
* Rename the variable from s to tbl to better reflect that th
* Rename the polynomial coefficients from P2, P3, ... to A2, A3, .... The names now coincide with the name used in PTP Tang's paper.
* Rename the variable from s to tbl to better reflect that this is a table, and to be consistent with the naming scheme in s_exp2l.c
Reviewed by: bde (as part of larger diff)
show more ...
|
dba466c3 | 23-Sep-2012 |
Steve Kargl <kargl@FreeBSD.org> |
* ld80/s_expl.c: . Fix the threshold for expl(x) where |x| is small. . Also update the previously incorrect comment to match the new threshold.
* ld128/s_expl.c: . Re-order logic in except
* ld80/s_expl.c: . Fix the threshold for expl(x) where |x| is small. . Also update the previously incorrect comment to match the new threshold.
* ld128/s_expl.c: . Re-order logic in exceptional cases to match the logic used in other long double functions. . Fix the threshold for expl(x) where is |x| is small. . Also update the previously incorrect comment to match the new threshold.
Submitted by: bde Approved by: das (mentor)
show more ...
|
8345cbd2 | 26-Jul-2012 |
Steve Kargl <kargl@FreeBSD.org> |
Replace the macro name NUM with INTERVALS. This change provides compatibility with the INTERVALS macro used in the soon-to-be-commmitted expm1l() and someday-to-be-committed log*l() functions.
Add
Replace the macro name NUM with INTERVALS. This change provides compatibility with the INTERVALS macro used in the soon-to-be-commmitted expm1l() and someday-to-be-committed log*l() functions.
Add a comment into ld128/s_expl.c noting at gcc issue that was deleted when rewriting ld80/e_expl.c as ld128/s_expl.c.
Requested by: bde Approved by: das (mentor)
show more ...
|