[all-commits] [llvm/llvm-project] 46aa65: [libc][math] Improve exp2f performance.

lntue via All-commits all-commits at lists.llvm.org
Tue Jun 20 06:34:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46aa659a32e78481d90950eda9d464fc22eaad31
      https://github.com/llvm/llvm-project/commit/46aa659a32e78481d90950eda9d464fc22eaad31
  Author: Tue Ly <lntue at google.com>
  Date:   2023-06-20 (Tue, 20 Jun 2023)

  Changed paths:
    M libc/src/math/generic/CMakeLists.txt
    M libc/src/math/generic/exp2f.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc][math] Improve exp2f performance.

Re-organize special cases and add a special case when `|x| < 2^-5`.

Reviewed By: michaelrj

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




More information about the All-commits mailing list