[libc-commits] [PATCH] D92353: [libc] Fix couple of corner cases in remquo.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Nov 30 16:08:54 PST 2020


sivachandra created this revision.
sivachandra added a reviewer: lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
sivachandra requested review of this revision.

These two cases are fixed:

1. If numerator is not zero and denominator is infinity, then the

numerator is returned as the remainder.

2. If numerator and denominator are equal in magnitude, then quotient

with the right sign is returned.

The differet tests of remquo, remquof and remquol have been unified
into a single file to avoid duplication.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92353

Files:
  libc/test/src/math/CMakeLists.txt
  libc/test/src/math/RemQuoTest.h
  libc/test/src/math/remquo_test.cpp
  libc/test/src/math/remquof_test.cpp
  libc/test/src/math/remquol_test.cpp
  libc/utils/FPUtil/DivisionAndRemainderOperations.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92353.308498.patch
Type: text/x-patch
Size: 15320 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20201201/fa96f234/attachment-0001.bin>


More information about the libc-commits mailing list