Searched refs:ModuloNumberOfFrames (Results 1 – 3 of 3) sorted by relevance
/external/compiler-rt/lib/asan/tests/ |
D | asan_fake_stack_test.cc | 73 TEST(FakeStack, ModuloNumberOfFrames) { in TEST() argument 74 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 0, 0), 0U); in TEST() 75 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 0, (1<<15)), 0U); in TEST() 76 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 0, (1<<10)), 0U); in TEST() 77 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 0, (1<<9)), 0U); in TEST() 78 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 0, (1<<8)), 1U<<8); in TEST() 79 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 0, (1<<15) + 1), 1U); in TEST() 81 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 1, 0), 0U); in TEST() 82 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 1, 1<<9), 0U); in TEST() 83 EXPECT_EQ(FakeStack::ModuloNumberOfFrames(15, 1, 1<<8), 0U); in TEST() [all …]
|
/external/compiler-rt/lib/asan/ |
D | asan_fake_stack.h | 103 static uptr ModuloNumberOfFrames(uptr stack_size_log, uptr class_id, uptr n) { in ModuloNumberOfFrames() function
|
D | asan_fake_stack.cc | 88 uptr pos = ModuloNumberOfFrames(stack_size_log, class_id, hint_position++); in Allocate()
|