/external/v8/src/base/platform/ |
D | platform-solaris.cc | 112 size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); in VirtualMemory() local 113 DCHECK_LE(aligned_size, request_size); in VirtualMemory() 115 if (aligned_size != request_size) { in VirtualMemory() 116 size_t suffix_size = request_size - aligned_size; in VirtualMemory() 117 OS::Free(aligned_base + aligned_size, suffix_size); in VirtualMemory() 121 DCHECK(aligned_size == request_size); in VirtualMemory() 124 size_ = aligned_size; in VirtualMemory()
|
D | platform-macos.cc | 153 size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); in VirtualMemory() local 154 DCHECK_LE(aligned_size, request_size); in VirtualMemory() 156 if (aligned_size != request_size) { in VirtualMemory() 157 size_t suffix_size = request_size - aligned_size; in VirtualMemory() 158 OS::Free(aligned_base + aligned_size, suffix_size); in VirtualMemory() 162 DCHECK(aligned_size == request_size); in VirtualMemory() 165 size_ = aligned_size; in VirtualMemory()
|
D | platform-freebsd.cc | 160 size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); in VirtualMemory() local 161 DCHECK_LE(aligned_size, request_size); in VirtualMemory() 163 if (aligned_size != request_size) { in VirtualMemory() 164 size_t suffix_size = request_size - aligned_size; in VirtualMemory() 165 OS::Free(aligned_base + aligned_size, suffix_size); in VirtualMemory() 169 DCHECK(aligned_size == request_size); in VirtualMemory() 172 size_ = aligned_size; in VirtualMemory()
|
D | platform-aix.cc | 159 size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); in VirtualMemory() local 160 DCHECK_LE(aligned_size, request_size); in VirtualMemory() 162 if (aligned_size != request_size) { in VirtualMemory() 163 size_t suffix_size = request_size - aligned_size; in VirtualMemory() 164 OS::Free(aligned_base + aligned_size, suffix_size); in VirtualMemory() 168 DCHECK(aligned_size == request_size); in VirtualMemory() 171 size_ = aligned_size; in VirtualMemory()
|
D | platform-openbsd.cc | 191 size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); in VirtualMemory() local 192 DCHECK_LE(aligned_size, request_size); in VirtualMemory() 194 if (aligned_size != request_size) { in VirtualMemory() 195 size_t suffix_size = request_size - aligned_size; in VirtualMemory() 196 OS::Free(aligned_base + aligned_size, suffix_size); in VirtualMemory() 200 DCHECK(aligned_size == request_size); in VirtualMemory() 203 size_ = aligned_size; in VirtualMemory()
|
D | platform-qnx.cc | 217 size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); in VirtualMemory() local 218 DCHECK_LE(aligned_size, request_size); in VirtualMemory() 220 if (aligned_size != request_size) { in VirtualMemory() 221 size_t suffix_size = request_size - aligned_size; in VirtualMemory() 222 OS::Free(aligned_base + aligned_size, suffix_size); in VirtualMemory() 226 DCHECK(aligned_size == request_size); in VirtualMemory() 229 size_ = aligned_size; in VirtualMemory()
|
D | platform-linux.cc | 236 size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); in VirtualMemory() local 237 DCHECK_LE(aligned_size, request_size); in VirtualMemory() 239 if (aligned_size != request_size) { in VirtualMemory() 240 size_t suffix_size = request_size - aligned_size; in VirtualMemory() 241 OS::Free(aligned_base + aligned_size, suffix_size); in VirtualMemory() 245 DCHECK(aligned_size == request_size); in VirtualMemory() 248 size_ = aligned_size; in VirtualMemory()
|
/external/libchrome/base/files/ |
D | memory_mapped_file_posix.cc | 46 int64_t aligned_size = 0; in MapFileRegionToMemory() local 50 &aligned_size, in MapFileRegionToMemory() 54 if (aligned_start < 0 || aligned_size < 0 || in MapFileRegionToMemory() 56 static_cast<uint64_t>(aligned_size) > in MapFileRegionToMemory() 65 map_size = static_cast<size_t>(aligned_size); in MapFileRegionToMemory()
|
D | memory_mapped_file.cc | 116 int64_t* aligned_size, in CalculateVMAlignedBoundaries() argument 124 *aligned_size = (size + *offset + mask) & ~mask; in CalculateVMAlignedBoundaries()
|
D | memory_mapped_file.h | 113 int64_t* aligned_size,
|
/external/libvpx/libvpx/vpx_mem/ |
D | vpx_mem.c | 57 const uint64_t aligned_size = get_aligned_malloc_size(size, align); in vpx_memalign() local 58 if (!check_size_argument_overflow(1, aligned_size)) return NULL; in vpx_memalign() 60 addr = malloc((size_t)aligned_size); in vpx_memalign()
|
/external/google-breakpad/src/client/ |
D | minidump_file_writer.cc | 223 size_t aligned_size = (size + 7) & ~7; // 64-bit alignment in Allocate() local 225 if (position_ + aligned_size > size_) { in Allocate() 226 size_t growth = aligned_size; in Allocate() 241 position_ += static_cast<MDRVA>(aligned_size); in Allocate()
|
/external/compiler-rt/lib/asan/ |
D | asan_poisoning.h | 39 ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size, in FastPoisonShadow() argument 44 aligned_beg + aligned_size - SHADOW_GRANULARITY) + 1; in FastPoisonShadow()
|
D | asan_poisoning.cc | 296 uptr aligned_size = size & ~(SHADOW_GRANULARITY - 1); in PoisonAlignedStackMemory() local 297 PoisonShadow(addr, aligned_size, in PoisonAlignedStackMemory() 299 if (size == aligned_size) in PoisonAlignedStackMemory() 301 s8 end_offset = (s8)(size - aligned_size); in PoisonAlignedStackMemory() 302 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory()
|
D | asan_globals.cc | 64 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY); in PoisonRedZones() local 65 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, in PoisonRedZones() 67 if (g.size != aligned_size) { in PoisonRedZones()
|
/external/python/cpython2/Modules/_ctypes/libffi/src/microblaze/ |
D | ffi.c | 77 int aligned_size = WORD_ALIGN(size); in ffi_prep_args() local 80 stack_args_p += aligned_size; in ffi_prep_args() 133 memcpy(addr, value, aligned_size); in ffi_prep_args()
|
/external/libchrome/base/ |
D | pickle.cc | 43 size_t aligned_size = bits::Align(size, sizeof(uint32_t)); in Advance() local 44 if (end_index_ - read_index_ < aligned_size) { in Advance() 47 read_index_ += aligned_size; in Advance()
|
/external/vulkan-validation-layers/demos/smoke/ |
D | Smoke.cpp | 486 VkDeviceSize aligned_size = mem_reqs.size; in create_buffer_memory() local 487 if (aligned_size % mem_reqs.alignment) in create_buffer_memory() 488 aligned_size += mem_reqs.alignment - (aligned_size % mem_reqs.alignment); in create_buffer_memory() 493 mem_info.allocationSize = aligned_size * (frame_data_.size() - 1) + in create_buffer_memory() 515 offset += aligned_size; in create_buffer_memory()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | compute_memory_pool.c | 664 int64_t aligned_size = pool->size_in_dw; in compute_memory_transfer() local 679 &(struct pipe_box) { .width = aligned_size * 4, in compute_memory_transfer() 687 &(struct pipe_box) { .width = aligned_size * 4, in compute_memory_transfer()
|