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

/external/chromium_org/gpu/command_buffer/client/
H A Dfenced_allocator.cc18 const unsigned int kAllocAlignment = 16; member in namespace:gpu::__anon8390
20 // Round down to the largest multiple of kAllocAlignment no greater than |size|.
22 return size & ~(kAllocAlignment - 1);
25 // Round up to the smallest multiple of kAllocAlignment no smaller than |size|.
27 return (size + (kAllocAlignment - 1)) & ~(kAllocAlignment - 1);
H A Dfenced_allocator_test.cc38 static const int kAllocAlignment = 16; member in class:gpu::BaseFencedAllocatorTest
473 kBufferSize, kAllocAlignment)));
543 EXPECT_EQ(reinterpret_cast<intptr_t>(pointer1) & (kAllocAlignment - 1), 0);
549 EXPECT_EQ(reinterpret_cast<intptr_t>(pointer2) & (kAllocAlignment - 1), 0);

Completed in 77 milliseconds