Searched refs:kAllocAlignment (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/gpu/command_buffer/client/
H A Dfenced_allocator.cc16 const unsigned int kAllocAlignment = 16; member in namespace:gpu::__anon8251
18 // Round down to the largest multiple of kAllocAlignment no greater than |size|.
20 return size & ~(kAllocAlignment - 1);
23 // Round up to the smallest multiple of kAllocAlignment no smaller than |size|.
25 return (size + (kAllocAlignment - 1)) & ~(kAllocAlignment - 1);
H A Dfenced_allocator_test.cc37 static const int kAllocAlignment = 16; member in class:gpu::BaseFencedAllocatorTest
408 kBufferSize, kAllocAlignment)));
476 EXPECT_EQ(reinterpret_cast<intptr_t>(pointer1) & (kAllocAlignment - 1), 0);
482 EXPECT_EQ(reinterpret_cast<intptr_t>(pointer2) & (kAllocAlignment - 1), 0);

Completed in 60 milliseconds