A new function to MPFRWrapper has been added, which is used to set up
the unit tests.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/utils/FPUtil/NearestIntegerOperations.h | ||
---|---|---|
168 | For overflow values, I think it makes more sense to saturate to LONG_(MIN/MAX), LLONG_(MIN/MAX) accordingly, as I doubt most user codes will check for FE_INVALID, and a small floating point error making the results jump between INT_(MIN/MAX) and 0 might be surprising. |
For overflow values, I think it makes more sense to saturate to LONG_(MIN/MAX), LLONG_(MIN/MAX) accordingly, as I doubt most user codes will check for FE_INVALID, and a small floating point error making the results jump between INT_(MIN/MAX) and 0 might be surprising.