]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
added pair of inputs for hypotf in binary32
authorPaul Zimmermann <Paul.Zimmermann@inria.fr>
Sun, 12 Feb 2023 07:01:18 +0000 (08:01 +0100)
committerPaul Zimmermann <Paul.Zimmermann@inria.fr>
Tue, 14 Feb 2023 08:41:30 +0000 (09:41 +0100)
This pair yields an error of 1 ulp in binary32, whereas the current
maximal known error for hypotf on x86_64 is zero:

Checking hypot with glibc-2.37
hypot 0 -1 -0x1.003222p-20,-0x1.6a2d58p-32 [0.501] 0.500001 0.500000001392678
libm gives 0x1.003224p-20
mpfr gives 0x1.003222p-20

See https://sourceware.org/pipermail/libc-alpha/2023-February/145432.html
and https://sourceware.org/pipermail/libc-alpha/2023-February/145442.html
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
math/auto-libm-test-in

index 393d9fcfaa1ee69dd4ad0983e5472770062b0f95..c400cafb4bd4715ac74e418ca0b442815b909ca0 100644 (file)
@@ -5773,6 +5773,8 @@ hypot 0x1p-16384 0x1p-16446
 hypot 0x1p-16383 0x1p-16494
 
 hypot -0x1.fa7deap+0 0x1.a761bab383ac8p+0
+# the following inputs yield an error of 1 ulp on x86_64 in binary32
+hypot -0x1.003222p-20 -0x1.6a2d58p-32
 
 j0 -1.0
 j0 0.0