freebsd-src/lib/msun
Collin Funk 22ddb5bb83 math: Add long double constant definitions
These constants are GNU libc extensions that are likely to be adopted
by the next POSIX revision [1]. The definitions can be verified in
a PARI-GP shell session:

* M_El: exp (1)
* M_LOG2El: log (exp (1)) / log (2)
* M_LOG10El: log (exp (1)) / log (10)
* M_LN2l: log (2)
* M_LN10l: log (10)
* M_PIl: Pi
* M_PI_2l: Pi / 2
* M_PI_4l: Pi / 4
* M_1_PIl: 1 / Pi
* M_2_PIl: 2 / Pi
* M_2_SQRTPIl: 2 / sqrt (Pi)
* M_SQRT2l: sqrt (2)
* M_SQRT1_2l: 1 / sqrt (2)

[1] https://austingroupbugs.net/view.php?id=828

Put these behind __BSD_VISIBLE || __XSI_VISIBLE >= 800 to future-proof
these changes. They shouldn't be defined at lower levels of XSI, but don't
have other XSI 800 stuff in place yet.

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Reviewed by: imp, allanjude
Pull Request: https://github.com/freebsd/freebsd-src/pull/1121
2024-04-12 12:30:58 -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 math: Add long double constant definitions 2024-04-12 12:30:58 -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