The specified rounding mode will be used and restored to what it was before the test ran.
Additionally, it moves ForceRoundingMode and RoundingMode out of MPFRUtils to be used in more places.
Paths
| Differential D129685
[libc] Specify rounding mode for strto[f|d] tests ClosedPublic Authored by abrachet on Jul 13 2022, 12:27 PM.
Details Summary The specified rounding mode will be used and restored to what it was before the test ran. Additionally, it moves ForceRoundingMode and RoundingMode out of MPFRUtils to be used in more places.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 13 2022, 12:43 PM Closed by commit rG04c681d19564: [libc] Specify rounding mode for strto[f|d] tests (authored by abrachet). · Explain WhyJul 13 2022, 1:21 PM This revision was automatically updated to reflect the committed changes. abrachet marked an inline comment as done. lntue mentioned this in D129702: [libc] add rounding modes to printf float conv.Jul 13 2022, 7:06 PM
Revision Contents
Diff 444383 libc/test/src/stdlib/strtod_test.cpp
libc/test/src/stdlib/strtof_test.cpp
libc/utils/MPFRWrapper/CMakeLists.txt
libc/utils/MPFRWrapper/MPFRUtils.h
libc/utils/MPFRWrapper/MPFRUtils.cpp
libc/utils/testutils/CMakeLists.txt
libc/utils/testutils/RoundingModeUtils.h
libc/utils/testutils/RoundingModeUtils.cpp
|
typo?