A differential fuzzer for these functions has also been added.
Along the way, a small correction has been done to the normal/subnormal
limits of x86 long double values.
Details
- Reviewers
lntue - Commits
- rG7f7b0dc4e15f: [libc] Add implementations of nextafter[f|l] functions.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
130 ms | x64 windows > Clang.Profile::branch-logical-mixed.cpp |
Event Timeline
libc/utils/FPUtil/ManipulationFunctions.h | ||
---|---|---|
162–177 | We can reduce the if-else chain a bit as follows: if (from != T(0.0)) { if ((from < to) == (from > T(0.0)) { ++intVal; } else { --intVal; } } else { intVal = (to.bitsAsUInt() & signMask) + UIntType(1); } |
clang-tidy: warning: invalid case style for function 'LLVMFuzzerTestOneInput' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for parameter 'data' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for parameter 'size' [readability-identifier-naming]
not useful