The rounding behavior of NormalFloat to float format has been changed
to round to nearest. Also, a bug in NormalFloat to subnormal number
conversion has been fixed.
Details
- Reviewers
lntue - Commits
- rGbb8f2585c6ea: [libc] Add implementations of ldexp[f|l].
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/test/src/math/LdExpTest.h | ||
---|---|---|
117 | Isn't it going to show (LdExpTest, SpecialNumbers) for all float, double, and long double tests? | |
libc/utils/FPUtil/NormalFloat.h | ||
123 | Can you test the case (S, E, M) = (0, 0x1, 0b11....1) and exp = -1? The output should be (0, 0x1, 0b00..0). | |
237 | Can you test with similar example as the above comment? |
libc/test/src/math/LdExpTest.h | ||
---|---|---|
117 | Because of the space in long double, we cannot just append. Also, since this macro is to be used from different TUs, it does matter if all the classes have the same name. If we ever need different names, we can easily add a suffix argument to the macro. | |
libc/utils/FPUtil/NormalFloat.h | ||
123 | Ah, good catch! Also means I should not be sending out patches at midnight! Fixed it now. | |
237 | Same as above. |
Isn't it going to show (LdExpTest, SpecialNumbers) for all float, double, and long double tests?
Maybe append ##T to LdExpTest to distinguish between different data types?