HomePhabricator

[libc] Add implementations of remquo[f|l] and remainder[f|l].

Authored by sivachandra on Aug 17 2020, 4:24 PM.

Description

[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

Details