This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix a bug in MPFRUtils making ULP values off by 2^(-mantissaWidth).
ClosedPublic

Authored by lntue on Dec 1 2021, 7:27 AM.

Details

Summary

Fix a bug in MPFRUtils making ULP values off by 2^(-mantissaWidth) and incorrect eps for denormal numbers.

Diff Detail

Event Timeline

lntue created this revision.Dec 1 2021, 7:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2021, 7:27 AM
lntue requested review of this revision.Dec 1 2021, 7:27 AM
sivachandra accepted this revision.Dec 2 2021, 12:57 AM

Thanks for catching! My mistake.

libc/utils/MPFRWrapper/MPFRUtils.cpp
315

Add a comment saying this is for the denormal adjustment.

340

Same here.

This revision is now accepted and ready to land.Dec 2 2021, 12:57 AM
lntue updated this revision to Diff 391299.Dec 2 2021, 6:09 AM

[libc] Fix a bug in MPFRUtils making ULP values off by 2^(-mantissaWidth).

This revision was landed with ongoing or failed builds.Dec 2 2021, 6:10 AM
This revision was automatically updated to reflect the committed changes.