Based on RLIBM implementation similar to logf and log2f. Most of the exceptional inputs are the exact powers of 10.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D118093
[libc] Implement log10f correctly rounded for all rounding modes. ClosedPublic Authored by lntue on Jan 24 2022, 6:43 PM.
Details Summary Based on RLIBM implementation similar to logf and log2f. Most of the exceptional inputs are the exact powers of 10.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 24 2022, 10:01 PM This revision was landed with ongoing or failed builds.Jan 25 2022, 7:34 AM Closed by commit rGe581841e8cf4: [libc] Implement log10f correctly rounded for all rounding modes. (authored by lntue). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 402908 libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/math/CMakeLists.txt
libc/src/math/generic/CMakeLists.txt
libc/src/math/generic/log10f.cpp
libc/src/math/log10f.h
libc/test/src/math/CMakeLists.txt
libc/test/src/math/differential_testing/CMakeLists.txt
libc/test/src/math/differential_testing/log10f_perf.cpp
libc/test/src/math/exhaustive/CMakeLists.txt
libc/test/src/math/exhaustive/log10f_test.cpp
libc/test/src/math/log10f_test.cpp
libc/utils/MPFRWrapper/MPFRUtils.h
libc/utils/MPFRWrapper/MPFRUtils.cpp
|
Nit: Does it make sense to add a comment telling the reader about the decimal value?