[all-commits] [llvm/llvm-project] 9da912: [libc][math] Fix signaling nan handling of hypot(f...

lntue via All-commits all-commits at lists.llvm.org
Fri Jul 19 07:41:08 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9da9127fec7b0a252b80d60b09b8c0ccedb41672
      https://github.com/llvm/llvm-project/commit/9da9127fec7b0a252b80d60b09b8c0ccedb41672
  Author: lntue <35648136+lntue at users.noreply.github.com>
  Date:   2024-07-19 (Fri, 19 Jul 2024)

  Changed paths:
    M libc/src/__support/FPUtil/Hypot.h
    M libc/src/math/generic/CMakeLists.txt
    M libc/src/math/generic/hypotf.cpp
    M libc/test/src/math/smoke/CMakeLists.txt
    M libc/test/src/math/smoke/HypotTest.h
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc][math] Fix signaling nan handling of hypot(f) and improve hypotf performance. (#99432)

The errors were reported by Paul Zimmermann with the CORE-MATH project's
test suites:
```
zimmerma at tartine:/tmp/core-math$ CORE_MATH_CHECK_STD=true LIBM=$L ./check.sh hypot
Running worst cases check in --rndn mode...
FAIL x=snan y=inf ref=qnan z=inf
Running worst cases check in --rndz mode...
FAIL x=snan y=inf ref=qnan z=inf
Running worst cases check in --rndu mode...
FAIL x=snan y=inf ref=qnan z=inf
Running worst cases check in --rndd mode...
Spurious inexact exception for x=0x1.ffffffffffffep+24 y=0x1p+0 (z=0x1.0000000000001p+25)
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list