diff options
| author | Joseph Myers <josmyers@redhat.com> | 2025-03-07 19:15:26 +0000 |
|---|---|---|
| committer | Joseph Myers <josmyers@redhat.com> | 2025-03-07 19:15:26 +0000 |
| commit | 77261698b4e938020a1b2032709a54d942ba330f (patch) | |
| tree | 6d7b1dd547ad3ed168503f308f627327a4f69b89 /sysdeps/x86_64 | |
| parent | ee3b1d15da412be19583085f81c220653b270c1f (diff) | |
Implement C23 rsqrt
C23 adds various <math.h> function families originally defined in TS
18661-4. Add the rsqrt functions (1/sqrt(x)). The test inputs are
taken from those for sqrt.
Tested for x86_64 and x86, and with build-many-glibcs.py.
Diffstat (limited to 'sysdeps/x86_64')
| -rw-r--r-- | sysdeps/x86_64/fpu/libm-test-ulps | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps index a4bd2edcbc..a56cb3cd48 100644 --- a/sysdeps/x86_64/fpu/libm-test-ulps +++ b/sysdeps/x86_64/fpu/libm-test-ulps @@ -2068,6 +2068,30 @@ float: 3 Function: "pow_vlen8_avx2": float: 3 +Function: "rsqrt": +double: 1 +float: 1 +float128: 1 +ldouble: 1 + +Function: "rsqrt_downward": +double: 2 +float: 2 +float128: 2 +ldouble: 2 + +Function: "rsqrt_towardzero": +double: 2 +float: 2 +float128: 2 +ldouble: 2 + +Function: "rsqrt_upward": +double: 2 +float: 2 +float128: 2 +ldouble: 2 + Function: "sin": double: 1 float: 1 |
