diff options
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2023-12-26 15:28:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-26 15:28:36 -0800 |
commit | 39c2f59709f454f04cc13151301ca19c4ba9c152 (patch) | |
tree | 0d25402ab3b412f1239865615768747b831e1e9e /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 933882f73971546d529ab225cb9bb982ed5ff47b (diff) | |
download | llvm-39c2f59709f454f04cc13151301ca19c4ba9c152.zip llvm-39c2f59709f454f04cc13151301ca19c4ba9c152.tar.gz llvm-39c2f59709f454f04cc13151301ca19c4ba9c152.tar.bz2 |
[flang][runtime] Fix NEAREST() when exponent decreases (#75368)
When the result of NEAREST() has an exponent less than that of the
argument (e.g., NEAREST(1.,-1.) and NEAREST(-1.,1.)), the result was
wrong, because the increment value uses the result of SPACING() in terms
of the argument. Fix by just calling into the C runtime routine
std::nextafter().
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions