[all-commits] [llvm/llvm-project] ca6b35: [libc] Add range reduction functions based on Pain...

Siva Chandra via All-commits all-commits at lists.llvm.org
Sun Aug 22 22:19:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca6b354229702ba9a36044f0941669ee82da8761
      https://github.com/llvm/llvm-project/commit/ca6b354229702ba9a36044f0941669ee82da8761
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2021-08-23 (Mon, 23 Aug 2021)

  Changed paths:
    M libc/src/__support/FPUtil/CMakeLists.txt
    A libc/src/__support/FPUtil/UInt.h
    A libc/src/__support/FPUtil/XFloat.h
    M libc/src/math/generic/CMakeLists.txt
    A libc/src/math/generic/dp_trig.cpp
    A libc/src/math/generic/dp_trig.h
    M libc/test/src/math/CMakeLists.txt
    A libc/test/src/math/mod_k_pi_test.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.h

  Log Message:
  -----------
  [libc] Add range reduction functions based on Paine and Hanek algorithm.

These functions will be used in a future patch to implement
trigonometric functions. Unit tests have been added but to the
libc-long-running-tests suite. The unit tests long running because we
compare against MPFR computations performed at 1280 bits of precision.

Some cleanups or elimination of repeated patterns can be done as follow
up changes.

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




More information about the All-commits mailing list