freebsd-src/lib/msun
Henri Chataing 2b2cd97844 msun: Fix math error in comment explaining y reduction
x = k + y for some integer k and |y| < 1/2
exp2(x) = exp2(k + y) = exp2(k) * exp2(y)
which can be written as 2**k * exp2(y)

The original had x = 2**k + y, which is has an extra 2** in it which
isn't correct.

Confirmed by forumula 2 in Gal and Bachelis referenced in the comments
for the source of this method
	https://dl.acm.org/doi/pdf/10.1145/103147.103151

The actual code is correct.

Reviewed by: imp (who added s_exp2.c and wrote the commit message)
Pull Request: https://github.com/freebsd/freebsd-src/pull/1127
2024-04-12 16:15:04 -06:00
..
aarch64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
amd64 lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
arm Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
bsdsrc lib/msun: Cleanup after $FreeBSD$ removal 2024-01-28 17:00:23 +02:00
i387 lib/msun: Cleanup after $FreeBSD$ removal 2024-01-28 17:00:23 +02:00
ld80 lib/msun: Cleanup after $FreeBSD$ removal 2024-01-28 17:00:23 +02:00
ld128 lib/msun: Fix tgammal(3) on IEEE 128-bit platforms 2024-03-18 09:48:43 +00:00
man Now that D44168 has been merged to stable/14, update the manpage 2024-04-12 16:33:54 +01:00
powerpc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
riscv riscv: remove more riscv64sf support 2024-03-21 23:48:37 +00:00
src msun: Fix math error in comment explaining y reduction 2024-04-12 16:15:04 -06:00
tests lib/msun: Cleanup after $FreeBSD$ removal 2024-01-28 17:00:23 +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-03-18 09:48:43 +00:00
Makefile.depend dirdeps: Update/fix Makefile.depend* for toolchain 2023-11-26 20:50:13 -05:00
Symbol.map msun: remove fabs from Symbol.map, and adjust comment 2024-01-27 22:24:38 +01:00