/external/webrtc/talk/session/media/ |
D | planarfunctions_unittest.cc | 64 static const int kAlignment = 16; variable 165 uint8_t* image_pointer = new uint8_t[y_size + u_size + v_size + kAlignment]; in CreateFakeYuvTestingImage() 166 y_pointer = ALIGNP(image_pointer, kAlignment); in CreateFakeYuvTestingImage() 167 u_pointer = ALIGNP(&image_pointer[y_size], kAlignment); in CreateFakeYuvTestingImage() 168 v_pointer = ALIGNP(&image_pointer[y_size + u_size], kAlignment); in CreateFakeYuvTestingImage() 207 uint8_t* image_pointer = new uint8_t[2 * height * awidth + kAlignment]; in CreateFakeInterleaveYuvTestingImage() 208 yuv_pointer = ALIGNP(image_pointer, kAlignment); in CreateFakeInterleaveYuvTestingImage() 287 ((height + 1) / 2) * ((width + 1) / 2) * 2 + kAlignment]; in CreateFakeNV12TestingImage() 288 y_pointer = ALIGNP(image_pointer, kAlignment); in CreateFakeNV12TestingImage() 326 ((height + 1) / 2) * ((width + 1) / 2) * 2 + kAlignment]; in CreateFakeM420TestingImage() [all …]
|
D | yuvscaler_unittest.cc | 53 static const int kAlignment = 16; variable 105 new uint8_t[isize + kAlignment + memoffset]()); in TestScale() 107 new uint8_t[osize + kAlignment + memoffset]()); in TestScale() 109 new uint8_t[osize + kAlignment + memoffset]()); in TestScale() 111 uint8_t* ibuf = ALIGNP(ibuffer.get(), kAlignment) + memoffset; in TestScale() 112 uint8_t* obuf = ALIGNP(obuffer.get(), kAlignment) + memoffset; in TestScale() 113 uint8_t* xbuf = ALIGNP(xbuffer.get(), kAlignment) + memoffset; in TestScale() 212 scoped_ptr<uint8_t[]> ibuffer(new uint8_t[I420_SIZE(iw, ih) + kAlignment]); in TEST_F() 213 scoped_ptr<uint8_t[]> obuffer(new uint8_t[I420_SIZE(ow, oh) + kAlignment]); in TEST_F() 215 uint8_t* ibuf = ALIGNP(ibuffer.get(), kAlignment); in TEST_F() [all …]
|
/external/v8/src/ |
D | zone.cc | 94 size = RoundUp(size, kAlignment); in New() 98 if (kPointerSize == 4 && kAlignment == 4) { in New() 101 DCHECK(kAlignment >= kPointerSize); in New() 119 DCHECK(IsAddressAligned(result, kAlignment, 0)); in New() 160 position_ = RoundUp(start, kAlignment); in DeleteAll() 224 DCHECK_EQ(size, RoundDown(size, kAlignment)); in NewExpand() 233 static const size_t kSegmentOverhead = sizeof(Segment) + kAlignment; in NewExpand() 262 Address result = RoundUp(segment->start(), kAlignment); in NewExpand()
|
D | zone.h | 72 static const size_t kAlignment = 8; 75 static const size_t kAlignment = kPointerSize;
|
/external/skia/src/gpu/ |
D | GrMemoryPool.cpp | 21 fMinAllocSize = GrSizeAlignUp(minAllocSize + kPerAllocPad, kAlignment), in GrMemoryPool() 22 fPreallocSize = GrSizeAlignUp(preallocSize + kPerAllocPad, kAlignment); in GrMemoryPool() 44 size = GrSizeAlignUp(size, kAlignment); in allocate() 123 SkASSERT(!(reinterpret_cast<intptr_t>(block) % kAlignment)); in CreateBlock() 159 SkASSERT(!(b % kAlignment)); in validate() 160 SkASSERT(!(totalSize % kAlignment)); in validate() 161 SkASSERT(!(userSize % kAlignment)); in validate() 162 SkASSERT(!(block->fCurrPtr % kAlignment)); in validate()
|
D | GrMemoryPool.h | 86 kAlignment = 8, enumerator 87 kHeaderSize = GR_CT_ALIGN_UP(sizeof(BlockHeader), kAlignment), 88 kPerAllocPad = GR_CT_ALIGN_UP(sizeof(AllocHeader), kAlignment),
|
/external/gemmlowp/internal/ |
D | allocator.h | 97 static const std::size_t kAlignment = kDefaultCacheLineSize; 110 storage_ = memalign(kAlignment, storage_size_); 112 if (posix_memalign(&storage_, kAlignment, storage_size_)) { 152 const std::size_t bytes = RoundUp<kAlignment>(n * sizeof(T));
|
/external/gemmlowp/test/ |
D | test_allocator.cc | 32 !(reinterpret_cast<std::uintptr_t>(int32_array) % Allocator::kAlignment)); in test_allocator() 34 !(reinterpret_cast<std::uintptr_t>(int8_array) % Allocator::kAlignment)); in test_allocator()
|
/external/boringssl/src/tool/ |
D | speed.cc | 177 static const unsigned kAlignment = 16; in SpeedAEADChunk() local 188 std::unique_ptr<uint8_t[]> in_storage(new uint8_t[chunk_len + kAlignment]); in SpeedAEADChunk() 189 std::unique_ptr<uint8_t[]> out_storage(new uint8_t[chunk_len + overhead_len + kAlignment]); in SpeedAEADChunk() 193 uint8_t *const in = align(in_storage.get(), kAlignment); in SpeedAEADChunk() 195 uint8_t *const out = align(out_storage.get(), kAlignment); in SpeedAEADChunk()
|
/external/webrtc/talk/media/base/ |
D | videoframe_unittest.h | 69 static const int kAlignment = 16; variable 576 rtc::scoped_ptr<uint8_t[]> buf(new uint8_t[buf_size + kAlignment]); in ConstructI422() 577 uint8_t* y = ALIGNP(buf.get(), kAlignment); in ConstructI422() 597 rtc::scoped_ptr<uint8_t[]> buf(new uint8_t[buf_size + kAlignment]); in ConstructYuy2() 598 uint8_t* yuy2 = ALIGNP(buf.get(), kAlignment); in ConstructYuy2() 614 rtc::scoped_ptr<uint8_t[]> buf(new uint8_t[buf_size + kAlignment + 1]); in ConstructYuy2Unaligned() 615 uint8_t* yuy2 = ALIGNP(buf.get(), kAlignment) + 1; in ConstructYuy2Unaligned() 771 rtc::scoped_ptr<uint8_t[]> outbuf(new uint8_t[out_size + kAlignment]); in ConstructRGB565() 772 uint8_t* out = ALIGNP(outbuf.get(), kAlignment); in ConstructRGB565() 787 rtc::scoped_ptr<uint8_t[]> outbuf(new uint8_t[out_size + kAlignment]); in ConstructARGB1555() [all …]
|
/external/webrtc/webrtc/base/ |
D | stream.cc | 642 buffer_alloc_ = new char[buffer_length_ + kAlignment]; in SetData() 643 buffer_ = reinterpret_cast<char*>(ALIGNP(buffer_alloc_, kAlignment)); in SetData() 652 if (char* new_buffer_alloc = new char[size + kAlignment]) { in DoReserve() 654 ALIGNP(new_buffer_alloc, kAlignment)); in DoReserve()
|
D | stream.h | 478 static const int kAlignment = 16; variable
|
/external/v8/src/heap/ |
D | spaces.cc | 135 Address aligned_base = RoundUp(base, MemoryChunk::kAlignment); in SetUp() 210 DCHECK(IsAddressAligned(current.start, MemoryChunk::kAlignment)); in AllocateRawMemory() 232 DCHECK(IsAddressAligned(address, MemoryChunk::kAlignment)); in FreeRawMemory() 258 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment); in ReserveBlock() 264 DCHECK(IsAddressAligned(block->start, MemoryChunk::kAlignment)); in ReserveBlock() 643 IsAligned(reinterpret_cast<intptr_t>(base), MemoryChunk::kAlignment)); in AllocateChunk() 650 MemoryChunk::kAlignment, executable, in AllocateChunk() 671 AllocateAlignedMemory(chunk_size, commit_size, MemoryChunk::kAlignment, in AllocateChunk() 3120 uintptr_t base = reinterpret_cast<uintptr_t>(page) / MemoryChunk::kAlignment; in AllocateChunk() 3121 uintptr_t limit = base + (page->size() - 1) / MemoryChunk::kAlignment; in AllocateChunk() [all …]
|
D | spaces.h | 384 static const intptr_t kAlignment = variable 387 static const intptr_t kAlignmentMask = kAlignment - 1; 1115 DCHECK(IsAddressAligned(start, MemoryChunk::kAlignment)); in FreeBlock() 1120 DCHECK(IsAddressAligned(start, MemoryChunk::kAlignment)); in FreeBlock()
|
/external/v8/test/cctest/heap/ |
D | test-spaces.cc | 173 ? MemoryChunk::kAlignment in VerifyMemoryChunk() 218 MemoryChunk::kAlignment) + in TEST()
|