CVSROOT:        /cvs
Module name:    src
Changes by:     gne...@cvs.openbsd.org  2022/01/20 20:13:10

Modified files:
        lib/libm/src   : k_cosf.c k_sin.c k_sinf.c s_cosf.c s_sin.c 
                         s_sinf.c 

Log message:
Optimization for tiny x in cos and sin

Subset of FreeBSD commit 4339c67c485f0b1f7699863fc29f6c06862d1dde:
Moved the optimization for tiny x from __kernel_{cos,sin}[f](x) to
{cos_sin}[f](x) so that x doesn't need to be reclassified in the
"kernel" functions to determine if it is tiny (it still needs to be
reclassified in the cosine case for other reasons that will go away).
...

Parts of the original change were applied separately before.

Suggested by kettenis@

OK mbuhl@, tested by mbuhl@ and phessler@

Reply via email to