[all-commits] [llvm/llvm-project] a45ae4: [libc][math] Fix double-rounding errors with denor...

lntue via All-commits all-commits at lists.llvm.org
Thu Jul 16 17:11:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a45ae4cf77776bdae8ab79c3b5b4d4ef7cbd7d99
      https://github.com/llvm/llvm-project/commit/a45ae4cf77776bdae8ab79c3b5b4d4ef7cbd7d99
  Author: lntue <lntue at google.com>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M libc/src/__support/FPUtil/Hypot.h
    M libc/src/__support/math/hypot.h
    M libc/test/src/math/smoke/hypot_test.cpp

  Log Message:
  -----------
  [libc][math] Fix double-rounding errors with denormal inputs for hypot function. (#208247)

The issue was reported by Paul Zimmermann.

Solution: for denormal inputs, we use 1.0 + x trick after proper scaling
to mimick rounding at denormal scale.



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