Home
last modified time | relevance | path

Searched refs:ModuloNumberOfFrames (Results 1 – 3 of 3) sorted by relevance

/external/compiler-rt/lib/asan/tests/
Dasan_fake_stack_test.cc73 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/
Dasan_fake_stack.h103 static uptr ModuloNumberOfFrames(uptr stack_size_log, uptr class_id, uptr n) { in ModuloNumberOfFrames() function
Dasan_fake_stack.cc88 uptr pos = ModuloNumberOfFrames(stack_size_log, class_id, hint_position++); in Allocate()