summaryrefslogtreecommitdiff
path: root/libc/test/include/stdbit_test.cpp
AgeCommit message (Collapse)Author
2025-01-14[libc] Fix SPDX-License-Identifier file header comment typos (#122776)Roland McGrath
2024-03-12[libc] implement the final macros for stdbit.h support (#84798)Nick Desaulniers
Relevant sections of n3096: - 7.18.1p1 - 7.18.2
2024-03-11[libc][stdbit] Add C tests for stdbit generic macros. (#84670)lntue
Currently there is no tests for generic macros of generated `stdbit.h` header in C, and it is easy to make typo mistakes as in https://github.com/llvm/llvm-project/issues/84658. In this patch, we add a simple test for them in C.
2024-03-10[libc][stdbit][c23] adds implementation of `stdc_bit_ceil` functions (#84657)Michael Flanders
Closes #84652. Based on #84233.
2024-03-07[libc][stdbit] implement stdc_bit_floor (C23) (#84233)Nick Desaulniers
2024-03-05[libc][stdbit] implement stdc_bit_width (C23) (#83892)Nick Desaulniers
2024-03-04[libc][test] update constants used in stdbit test (#83893)Nick Desaulniers
Either: - I forgot my alphabet (that E comes before F). - My juvenile inner brain finds unsigned literal constants with the sequence FU funny. ¿Por qué no los dos?
2024-02-29[libc] Revert https://github.com/llvm/llvm-project/pull/83199 since it broke ↵lntue
Fuchsia. (#83374) With some header fix forward for GPU builds.
2024-02-27[libc] Add "include/" to the LLVM include directories (#83199)Joseph Huber
Summary: Recent changes added an include path in the float128 type that used the internal `libc` path to find the macro. This doesn't work once it's installed because we need to search from the root of the install dir. This patch adds "include/" to the include path so that our inclusion of installed headers always match the internal use.
2024-02-27[libc][stdbit] implement stdc_has_single_bit (C23) (#83168)Nick Desaulniers
2024-02-26[libc][stdbit] implement stdc_count_ones (C23) (#82444)Nick Desaulniers
2024-02-26[libc][stdbit] implement stdc_count_zeros (C23) (#82437)Nick Desaulniers
2024-02-14[libc][stdbit] implement stdc_first_trailing_one (C23) (#81768)Nick Desaulniers
2024-02-14[libc][stdbit] implement stdc_first_trailing_zero (C23) (#81526)Nick Desaulniers
2024-02-14[libc][stdbit] implement stdc_first_leading_one (C23) (#81502)Nick Desaulniers
2024-02-12[libc][stdbit] implement stdc_first_leading_zero (C23) (#81340)Nick Desaulniers
2024-02-07[libc][stdbit] implement stdc_trailing_ones (C23) (#80459)Nick Desaulniers
2024-02-06[libc][stdbit] implement stdc_trailing_zeros (C23) (#80344)Nick Desaulniers
2024-02-01[libc][stdbit] fix return types (#80337)Nick Desaulniers
All of the functions I've previously implemented return an unsigned int; not the parameter type.
2024-02-01[libc] fix stdbit include test when not all entrypoints are available (#80323)Nick Desaulniers
The intent of the test is to check that: 1. The type generic macros are defined. 2. Those macros dispatch to the correct underlying function. The issue is that when new functionality is added to our stdbit.h without rolling out the new entrypoint to all targets, this test breaks because our generated stdbit.h will not contain declarations for the underlying function. In that case, we should just declare the underlying functions first before including our generated stdbit.h which just contains declarations. A definition is a declaration, but redeclarations must match, hence the additions of noexcept and extern "C".
2024-02-01[libc] implement stdc_leading_ones (C23) (#80082)Nick Desaulniers
2024-01-29[libc] implement stdc_leading_zeros_u* for stdbit.h (#79669)Nick Desaulniers
- stdbit.stdc_leading_zeros_uc - stdbit.stdc_leading_zeros_us - stdbit.stdc_leading_zeros_ui - stdbit.stdc_leading_zeros_ul - stdbit.stdc_leading_zeros_ull Test via: $ ninja libc-stdbit-tests libc_include_tests