mirror-llvm-project/libc
Zorojuro 0f1f234990
[libc][math] Adding constexpr to tests for Double-type math functions (#200681)
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.
2026-06-01 14:30:20 -04:00
..
benchmarks [libc] Fix unit test dependency and respect LIBC_INCLUDE_BENCHMARKS (#180812) 2026-02-10 14:08:48 -06:00
cmake [libc][NFC] Add few options to allow users to skip building and running some tests. (#199474) 2026-05-29 12:52:11 -04:00
config [libc] Add netinet/udp.h containing struct udphdr (#200839) 2026-06-01 15:38:04 +00:00
docs [docs] Remove all references to Maintainers.rst (#200368) 2026-06-01 10:20:45 +00:00
examples [libc] Fix broken links in libc (#145199) 2025-06-23 15:51:43 -07:00
fuzzing [libc] Add Annex K strnlen_s function (#186112) 2026-04-13 13:10:27 +01:00
hdr [libc] Add netinet/udp.h containing struct udphdr (#200839) 2026-06-01 15:38:04 +00:00
include [libc][math] Add missing math.yaml entries for acospif and atan2f16 (#199442) 2026-06-01 13:39:09 -04:00
lib [libc] Fix install-libc to work with LLVM_LIBC_FULL_BUILD=OFF (#197366) 2026-05-15 20:27:53 -04:00
shared [libc][math] Implement isnanf16 header-only function (#198115) 2026-05-24 11:28:50 -04:00
src [libc][math] Guard f16 math headers to fix certain 32-bit ARM builds (#200715) 2026-06-01 10:58:34 +02:00
startup [libc] Port munmap and mprotect to the new syscall interface (#199199) 2026-05-25 13:07:05 +02:00
test [libc][math] Adding constexpr to tests for Double-type math functions (#200681) 2026-06-01 14:30:20 -04:00
utils [libc] Add netinet/tcp.h header (#200356) 2026-06-01 10:10:52 +02:00
.clang-tidy
.gitignore [libc][wctype] Create generation script for classification lookup tables (#172042) 2026-01-06 12:13:28 +01:00
CMakeLists.txt [libc] Add LLVM_LIBC_ENABLE_EXPERIMENTAL_ENTRYPOINTS CMake flag (#197537) 2026-05-14 07:01:13 +01:00
LICENSE.TXT
Maintainers.md [libc][freebsd] initialize freebsd support (#124459) 2026-05-19 13:04:34 -07:00
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.