Home
last modified time | relevance | path

Searched refs:powerof2 (Results 1 – 14 of 14) sorted by relevance

/aosp12/bionic/tests/
H A Dsys_param_test.cpp21 ASSERT_TRUE(powerof2(1)); in TEST()
22 ASSERT_TRUE(powerof2(2)); in TEST()
23 ASSERT_TRUE(powerof2(4)); in TEST()
24 ASSERT_TRUE(powerof2(8)); in TEST()
25 ASSERT_FALSE(powerof2(3)); in TEST()
26 ASSERT_FALSE(powerof2(5)); in TEST()
27 ASSERT_FALSE(powerof2(7)); in TEST()
28 ASSERT_FALSE(powerof2(9)); in TEST()
29 ASSERT_FALSE(powerof2(10)); in TEST()
34 ASSERT_TRUE(powerof2(0)); in TEST()
[all …]
H A Dunistd_test.cpp757 ASSERT_TRUE(rc > 0 && powerof2(rc)); in TEST()
759 ASSERT_TRUE(rc > 0 && powerof2(rc)); in TEST()
761 ASSERT_TRUE(rc > 0 && powerof2(rc)); in TEST()
764 ASSERT_TRUE(rc > 0 && powerof2(rc)); in TEST()
766 ASSERT_TRUE(rc > 0 && powerof2(rc)); in TEST()
768 ASSERT_TRUE(rc > 0 && powerof2(rc)); in TEST()
/aosp12/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dgetdelim.c91 #define powerof2(x) ((((x)-1)&(x))==0) in getdelim() macro
92 if (!powerof2(newlen)) { in getdelim()
/aosp12/bionic/libc/malloc_hooks/
H A Dmalloc_hooks.cpp185 if (!powerof2(alignment) || (size % alignment) != 0) { in hooks_aligned_alloc()
200 if (alignment < sizeof(void*) || !powerof2(alignment)) { in hooks_posix_memalign()
/aosp12/bionic/libc/include/sys/
H A Dparam.h61 #define powerof2(x) \ macro
/aosp12/bionic/libc/bionic/
H A Dbionic_elf_tls.cpp80 if (*alignment == 0 || !powerof2(*alignment)) { in __bionic_check_tls_alignment()
219 if (!powerof2(bytes)) { in calculate_new_dtv_count()
H A Djemalloc_wrapper.cpp44 if (!powerof2(boundary)) { in je_memalign_round_up_boundary()
H A Dbionic_allocator.cpp322 if (!powerof2(align)) { in memalign()
/aosp12/system/libziparchive/
H A Dzip_writer.cc33 #undef powerof2
34 #define powerof2(x) \ macro
216 if (powerof2(alignment) == 0) { in StartAlignedEntryWithTime()
/aosp12/bionic/libc/malloc_debug/
H A Dmalloc_debug.cpp584 if (!powerof2(alignment)) { in debug_memalign()
867 if (!powerof2(alignment) || (size % alignment) != 0) { in debug_aligned_alloc()
879 if (alignment < sizeof(void*) || !powerof2(alignment)) { in debug_posix_memalign()
/aosp12/frameworks/av/media/libeffects/dynamicsproc/dsp/
H A DDPFrequency.cpp146 if (!powerof2(blockSize)) { in configure()
/aosp12/frameworks/av/media/libeffects/dynamicsproc/
H A DEffectDynamicsProcessing.cpp242 } else if (!powerof2(desiredBlock)) { in DP_configureVariant()
/aosp12/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_unit_tests.cpp418 if (!powerof2(alignment)) { in TEST_F()
516 if (!powerof2(alignment)) { in TEST_F()
/aosp12/bionic/linker/
H A Dlinker.cpp2843 if (!powerof2(gnu_maskwords_)) { in prelink_image()