[all-commits] [llvm/llvm-project] 8514ec: [libc] Add implementations of remquo[f|l] and rema...

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu Sep 3 22:00:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8514ecb02d4330bc075b9c8fef77c87810088d2f
      https://github.com/llvm/llvm-project/commit/8514ecb02d4330bc075b9c8fef77c87810088d2f
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

  Changed paths:
    M libc/config/linux/api.td
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/spec/stdc.td
    M libc/src/math/CMakeLists.txt
    A libc/src/math/remainder.cpp
    A libc/src/math/remainder.h
    A libc/src/math/remainderf.cpp
    A libc/src/math/remainderf.h
    A libc/src/math/remainderl.cpp
    A libc/src/math/remainderl.h
    A libc/src/math/remquo.cpp
    A libc/src/math/remquo.h
    A libc/src/math/remquof.cpp
    A libc/src/math/remquof.h
    A libc/src/math/remquol.cpp
    A libc/src/math/remquol.h
    M libc/test/src/math/CMakeLists.txt
    A libc/test/src/math/remquo_test.cpp
    A libc/test/src/math/remquof_test.cpp
    A libc/test/src/math/remquol_test.cpp
    M libc/utils/FPUtil/CMakeLists.txt
    A libc/utils/FPUtil/DivisionAndRemainderOperations.h
    M libc/utils/FPUtil/FPBits.h
    M libc/utils/FPUtil/LongDoubleBitsX86.h

  Log Message:
  -----------
  [libc] Add implementations of remquo[f|l] and remainder[f|l].

The implementation is not fully standards compliant in the sense that
errno is not set on error, and floating point exceptions are not raised.

Subnormal range and normal range are tested separately in the tests.

Reviewed By: lntue

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




More information about the All-commits mailing list