Searched refs:offset_to_next_aligned (Results 1 – 4 of 4) sorted by relevance
83 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()
63 template <size_t alignment> intptr_t offset_to_next_aligned(const void *ptr) { in offset_to_next_aligned() function72 return offset_to_next_aligned<LLVM_LIBC_CACHELINE_SIZE>(ptr); in offset_to_next_cache_line()
446 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()
456 auto offset = offset_to_next_aligned<Alignment>(aligned_ptr);