]> git.ipfire.org Git - thirdparty/gcc.git/commit
LibF7: sinh: Fix loss of precision due to cancellation for small values.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 14 Nov 2023 11:05:19 +0000 (12:05 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Tue, 14 Nov 2023 11:10:08 +0000 (12:10 +0100)
commit3232e73c446a3a70fd2fcce4eabc0564b08312a7
tree1ca35ea616aa3b029bb1931a4395d639b33cff38
parente47e836f3138f89350e2fcd42ee1ec6741008bcb
LibF7: sinh: Fix loss of precision due to cancellation for small values.

libgcc/config/avr/libf7/
* libf7-const.def [F7MOD_sinh_]: Add MiniMax polynomial.
* libf7.c (f7_sinh): Use it instead of (exp(x) - exp(-x)) / 2
when |x| < 0.5 to avoid loss of precision due to cancellation.
libgcc/config/avr/libf7/libf7-const.def
libgcc/config/avr/libf7/libf7.c