This is an archive of the discontinued LLVM Phabricator instance.

[libc][obvious] fix sqrt when long double is double
ClosedPublic

Authored by michaelrj on Mar 29 2022, 2:55 PM.

Details

Summary

Previously, the "fsqrt" instruction was used on all x86_64 platforms
for finding the square root of long doubles. On long double is double
platforms (e.g. windows) this created errors. This patch changes square
root function for long doubles to be the same as the one for doubles if
long doubles are doubles.

Diff Detail

Event Timeline

michaelrj created this revision.Mar 29 2022, 2:55 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 29 2022, 2:55 PM
michaelrj requested review of this revision.Mar 29 2022, 2:55 PM
sivachandra accepted this revision.Mar 29 2022, 3:06 PM
This revision is now accepted and ready to land.Mar 29 2022, 3:06 PM
lntue accepted this revision.Mar 29 2022, 3:14 PM
This revision was landed with ongoing or failed builds.Mar 29 2022, 4:05 PM
This revision was automatically updated to reflect the committed changes.