Lines Matching defs:alignment
18 // GrBagOfBytes parcels out bytes with a given size and alignment.
26 // overhead and alignment. It crashes if requestedSize is negative or too big.
40 // block will be placed at the proper alignment because alignUp is properly
45 // maxAlignment/minAlignment different address to achieve alignment, so we need
87 // The maximum alignment supported by GrBagOfBytes. 16 seems to be a good number for alignment.
95 // The assumed alignment of new char[] given the platform.
96 // There is a bug in Emscripten's allocator that make alignment different than max_align_t.
105 static constexpr size_t AlignUp(int size, int alignment) {
106 return (size + (alignment - 1)) & -alignment;
121 char* allocateBytes(int size, int alignment) {
122 fCapacity = fCapacity & -alignment;
124 this->needMoreBytes(size, alignment);
127 SkASSERT(((intptr_t)ptr & (alignment - 1)) == 0);
136 // Adjust fEndByte and fCapacity to satisfy the size and alignment request.
137 void needMoreBytes(int size, int alignment);
227 void* alignedBytes(int size, int alignment);