Home
last modified time | relevance | path

Searched refs:offset_to_next_aligned (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/libc/test/src/string/memory_utils/
Dutils_test.cpp83 EXPECT_EQ(offset_to_next_aligned<16>(forge(0)), I(0)); in TEST()
84 EXPECT_EQ(offset_to_next_aligned<16>(forge(1)), I(15)); in TEST()
85 EXPECT_EQ(offset_to_next_aligned<16>(forge(16)), I(0)); in TEST()
86 EXPECT_EQ(offset_to_next_aligned<16>(forge(15)), I(1)); in TEST()
87 EXPECT_EQ(offset_to_next_aligned<32>(forge(16)), I(16)); in TEST()
/external/llvm-project/libc/src/string/memory_utils/
Dutils.h51 template <size_t alignment> intptr_t offset_to_next_aligned(const void *ptr) { in offset_to_next_aligned() function
60 return offset_to_next_aligned<LLVM_LIBC_CACHELINE_SIZE>(ptr); in offset_to_next_cache_line()