Searched refs:offset_to_next_aligned (Results 1 – 2 of 2) 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()
51 template <size_t alignment> intptr_t offset_to_next_aligned(const void *ptr) { in offset_to_next_aligned() function60 return offset_to_next_aligned<LLVM_LIBC_CACHELINE_SIZE>(ptr); in offset_to_next_cache_line()