Use CORE-MATH sin, cos, and sincos

Paul Zimmermann Paul.Zimmermann@inria.fr
Mon Nov 23 07:43:10 GMT 2026


       Hi,

this is not a full review: I did check the series against CORE-MATH test
suite (checking also errno and the inexact exception), both with and
without FMA contraction, and all tests pass for sin, cos and sincos.

For example for sin with FMA contraction, after installing glibc in /tmp:

zimmerma@thym:~/svn/core-math$ EXTRA_CFLAGS="-DCORE_MATH_SUPPORT_ERRNO -DCORE_MATH_CHECK_INEXACT" CORE_MATH_CHECK_STD=true CORE_MATH_LAUNCHER="/tmp/lib/ld-linux-x86-64.so.2 --library-path /tmp/lib:/usr/lib/x86_64-linux-gnu" LDFLAGS="-L /tmp/lib" ./check.sh sin
Running worst cases check in --rndn mode...
3951854 tests passed, 0 failure(s)
Running worst cases check in --rndz mode...
3951854 tests passed, 0 failure(s)
Running worst cases check in --rndu mode...
3951854 tests passed, 0 failure(s)
Running worst cases check in --rndd mode...
3951854 tests passed, 0 failure(s)

Paul


More information about the Libc-alpha mailing list