OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:kAllocAlignment
(Results
1 - 2
of
2
) sorted by null
/external/chromium_org/gpu/command_buffer/client/
fenced_allocator.cc
18
const unsigned int
kAllocAlignment
= 16;
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);
fenced_allocator_test.cc
38
static const int
kAllocAlignment
= 16;
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 51 milliseconds