opnsense-src/lib/msun
Mark Murray 8df6c930c1 lib/msun: Fix tgammal(3) on IEEE 128-bit platforms
Undo the 80-bit "stub" implementation of the 128-bit long double
tgammal(3) function. The latest (as of Feb 2024) version of the
src/contrib/arm-optimised-routines library includes a standalone,
full 128-bit replacement. This needs a small bit of wrapping to
fit it in, but is otherwise a drop-in replacement.

Testing this is hard, as most maths packages blow up as soon as
their 80-bit floating-point capability is exceeded. With 128-bit
tgammal(), this is easy to do, and this is the range that needs to
be checked the most carefully. Using my copy of Maple, I was able
to check that the output was within a few ULP of the correct answer,
right up to the point of 128-bit over- and underflow. Additionally,
the results are no worse, and indeed better than the 80-bit version.

Steve Kargl sent me his libm testing code, which I used to verify
that the excpetions for certain key values were correct. Tested in
this case were +-Inf, +-NaN, +-1 and +-0.

Differential Revision:	https://reviews.freebsd.org/D44168
Reviewed by:	theraven, andrew, imp

(cherry-picked from commit e38f2308273c8a51ec45f013d22c963590917cca)
2024-04-12 16:27:21 +01:00
..
aarch64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
arm Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
bsdsrc lib/msun: Cleanup after $FreeBSD$ removal 2024-02-04 02:26:28 +02:00
i387 lib/msun: Cleanup after $FreeBSD$ removal 2024-02-04 02:26:28 +02:00
ld80 lib/msun: Cleanup after $FreeBSD$ removal 2024-02-04 02:26:28 +02:00
ld128 lib/msun: Fix tgammal(3) on IEEE 128-bit platforms 2024-04-12 16:27:21 +01:00
man lib/msun: Fix tgammal(3) on IEEE 128-bit platforms 2024-04-12 16:27:21 +01:00
powerpc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
riscv Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
src lib/msun: Cleanup after $FreeBSD$ removal 2024-02-04 02:26:28 +02:00
tests lib/msun: Cleanup after $FreeBSD$ removal 2024-02-04 02:26:28 +02:00
x86 Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile lib/msun: Fix tgammal(3) on IEEE 128-bit platforms 2024-04-12 16:27:21 +01:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Symbol.map msun: remove fabs from Symbol.map, and adjust comment 2024-01-30 18:53:19 +01:00