Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libc/test/src/string/memory_utils/
H A 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()
/llvm-project-15.0.7/libc/src/string/memory_utils/
H A Dutils.h63 template <size_t alignment> intptr_t offset_to_next_aligned(const void *ptr) { in offset_to_next_aligned() function
72 return offset_to_next_aligned<LLVM_LIBC_CACHELINE_SIZE>(ptr); in offset_to_next_cache_line()
H A Dalgorithm.h446 auto offset = offset_to_next_aligned<ALIGN_OP_SIZE>(arg1.ptr_); in align()
451 auto offset = offset_to_next_aligned<ALIGN_OP_SIZE>(arg2.ptr_); in align()
H A Delements.h456 auto offset = offset_to_next_aligned<Alignment>(aligned_ptr);