[all-commits] [llvm/llvm-project] f1ec99: [libc] Improve hypotf performance with different a...

lntue via All-commits all-commits at lists.llvm.org
Wed Feb 16 06:49:20 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1ec99f973bdff66f81c3e00969d900ef2def081
      https://github.com/llvm/llvm-project/commit/f1ec99f973bdff66f81c3e00969d900ef2def081
  Author: Tue Ly <lntue at google.com>
  Date:   2022-02-16 (Wed, 16 Feb 2022)

  Changed paths:
    M libc/src/math/generic/CMakeLists.txt
    M libc/src/math/generic/hypotf.cpp
    M libc/test/src/math/differential_testing/BinaryOpSingleOutputDiff.h
    M libc/test/src/math/exhaustive/CMakeLists.txt
    A libc/test/src/math/exhaustive/hypotf_test.cpp
    M libc/test/src/math/hypotf_hard_to_round.h

  Log Message:
  -----------
  [libc] Improve hypotf performance with different algorithm correctly rounded to all rounding modes.

Algorithm for hypotf: compute (a*a + b*b) in double precision, then use Dekker's algorithm to find the rounding error, and then correcting it after taking its square-root.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D118157




More information about the All-commits mailing list