This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add long double flavors of the floating point manipulation functions.
ClosedPublic

Authored by sivachandra on Jun 23 2020, 1:13 AM.

Details

Summary

Specifically: copysignl, frexpl, logbl and modfl have been added.

Diff Detail

Event Timeline

sivachandra created this revision.Jun 23 2020, 1:13 AM
asteinhauser accepted this revision.Jun 23 2020, 8:36 PM

Good job. Are the -O2 options necessary for the correctness or it's just an optimization?

This revision is now accepted and ready to land.Jun 23 2020, 8:36 PM
This revision was automatically updated to reflect the committed changes.

Are the -O2 options necessary for the correctness or it's just an optimization?

At -O2, the static inline functions actually get inlined and we can compare the code size et al with implementations from another libc. It does not affect the correctness.