[PATCH 0/4] math: Fix inaccurate sin/cos/tan for large arguments (BZ 34376)
Stefan Kanthak
stefan.kanthak@nexgo.de
Fri Jul 17 11:18:15 GMT 2026
"Adhemerval Zanella" <adhemerval.zanella@linaro.org> wrote:
> The fix restores the fdlibm e_rem_pio2.c [...]
Don't you have (or want a better) alternative?
How big is this code, and how fast^Wslow does it run?
JFTR: fdlibm was written for 32-bit machines, it doesn't use 64-bit integer
arithmetic supported since 20 years on mainstream processors, or via
(hopefully properly optimising) compilers on 32-bit processors since
the last millenium.
If it has more than about 60 instructions on x86-64 or about 140 instructions
on x86/x87: DUMP IT!
Take a look at <https://skanthak.hier-im-netz.de/ieee-754.html#payne-hanek>
for comparison.
regards
Stefan
More information about the Libc-alpha
mailing list