Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libc / test / src / stdbit / CMakeLists.txt
blobc3f8059d2d9b2a25d8b5340a34273e24161a1bb9
1 add_custom_target(libc-stdbit-tests)
3 set(prefixes
4   leading_zeros
5   leading_ones
6   trailing_zeros
7   trailing_ones
8   first_leading_zero
9   first_leading_one
10   first_trailing_zero
11   first_trailing_one
12   count_zeros
13   count_ones
14   has_single_bit
15   bit_width
16   bit_floor
17   bit_ceil
19 set(suffixes c s i l ll)
20 foreach(prefix IN LISTS prefixes)
21   foreach(suffix IN LISTS suffixes)
22     add_libc_test(
23       stdc_${prefix}_u${suffix}_test
24       SUITE
25         libc-stdbit-tests
26       SRCS
27         stdc_${prefix}_u${suffix}_test.cpp
28       DEPENDS
29         libc.src.__support.CPP.limits
30         libc.src.stdbit.stdc_${prefix}_u${suffix}
31     )
32   endforeach()
33 endforeach()