Similar to ```CPP constexpr uint64_t X_COUNT = 123; constexpr uint64_t X_START = FPBits(0.25).uintval(); constexpr uint64_t X_STOP = FPBits(4.0).uintval(); constexpr uint64_t X_STEP = (X_STOP - X_START) / X_COUNT; constexpr uint64_t Y_COUNT = 137; constexpr uint64_t Y_START = FPBits(0.25).uintval(); constexpr uint64_t Y_STOP = FPBits(4.0).uintval(); constexpr uint64_t Y_STEP = (Y_STOP - Y_START) / Y_COUNT; ``` in [atan2_test.cpp](https://github.com/llvm/llvm-project/blob/main/libc/test/src/math/atan2_test.cpp) This PR tends to add constexpr to all double function tests-only Additonally, replacing ``` CPP LIBC_NAMESPACE::fputil::FPBits<double>(x).uintval(); ``` to ```CPP FPBits(x).uintval(); ``` Assisted using Copilot. |
||
|---|---|---|
| .. | ||
| benchmarks | ||
| cmake | ||
| config | ||
| docs | ||
| examples | ||
| fuzzing | ||
| hdr | ||
| include | ||
| lib | ||
| shared | ||
| src | ||
| startup | ||
| test | ||
| utils | ||
| .clang-tidy | ||
| .gitignore | ||
| CMakeLists.txt | ||
| LICENSE.TXT | ||
| Maintainers.md | ||
| README.txt | ||
LLVM libc ========= This directory and its subdirectories contain source code for llvm-libc, a retargetable implementation of the C standard library. LLVM is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.