[all-commits] [llvm/llvm-project] 6cb14a: [libc][math] Implement scalbn, scalbnf, scalbnl.

Renyi Chen via All-commits all-commits at lists.llvm.org
Wed Feb 8 21:56:14 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6cb14adbfa95fd7033bd02198530ab74a313549d
      https://github.com/llvm/llvm-project/commit/6cb14adbfa95fd7033bd02198530ab74a313549d
  Author: Renyi Chen <renyichen at google.com>
  Date:   2023-02-09 (Thu, 09 Feb 2023)

  Changed paths:
    M libc/config/darwin/arm/entrypoints.txt
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/config/windows/entrypoints.txt
    M libc/docs/math.rst
    M libc/spec/stdc.td
    M libc/src/__support/FPUtil/ManipulationFunctions.h
    M libc/src/math/CMakeLists.txt
    M libc/src/math/generic/CMakeLists.txt
    A libc/src/math/generic/scalbn.cpp
    A libc/src/math/generic/scalbnf.cpp
    A libc/src/math/generic/scalbnl.cpp
    A libc/src/math/scalbn.h
    A libc/src/math/scalbnf.h
    A libc/src/math/scalbnl.h
    M libc/test/src/math/CMakeLists.txt
    A libc/test/src/math/ScalbnTest.h
    A libc/test/src/math/scalbn_test.cpp
    A libc/test/src/math/scalbnf_test.cpp
    A libc/test/src/math/scalbnl_test.cpp

  Log Message:
  -----------
  [libc][math] Implement scalbn, scalbnf, scalbnl.

Implement scalbn via `fptuil::ldexp` for `FLT_RADIX==2` case.
"unimplemented" otherwise.

Reviewed By: lntue, sivachandra

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




More information about the All-commits mailing list