HomePhabricator

[libc] Fix couple of corner cases in remquo.

Authored by sivachandra on Nov 18 2020, 9:30 PM.

Description

[libc] Fix couple of corner cases in remquo.

These two cases are fixed:

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

numerator is returned as the remainder.

  1. 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.

Reviewed By: lntue

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

Details

Committed
sivachandraDec 2 2020, 11:48 AM
Reviewer
lntue
Differential Revision
D92353: [libc] Fix couple of corner cases in remquo.
Parents
rGbc044a88ee3c: [Inline] prevent inlining on stack protector mismatch
Branches
Unknown
Tags
Unknown