Home
last modified time | relevance | path

Searched refs:aligned_size (Results 1 – 19 of 19) sorted by relevance

/external/v8/src/base/platform/
Dplatform-solaris.cc112 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()
Dplatform-macos.cc153 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()
Dplatform-freebsd.cc160 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()
Dplatform-aix.cc159 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()
Dplatform-openbsd.cc191 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()
Dplatform-qnx.cc217 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()
Dplatform-linux.cc236 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/
Dmemory_mapped_file_posix.cc46 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()
Dmemory_mapped_file.cc116 int64_t* aligned_size, in CalculateVMAlignedBoundaries() argument
124 *aligned_size = (size + *offset + mask) & ~mask; in CalculateVMAlignedBoundaries()
Dmemory_mapped_file.h113 int64_t* aligned_size,
/external/libvpx/libvpx/vpx_mem/
Dvpx_mem.c57 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/
Dminidump_file_writer.cc223 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/
Dasan_poisoning.h39 ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size, in FastPoisonShadow() argument
44 aligned_beg + aligned_size - SHADOW_GRANULARITY) + 1; in FastPoisonShadow()
Dasan_poisoning.cc296 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()
Dasan_globals.cc64 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/
Dffi.c77 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/
Dpickle.cc43 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/
DSmoke.cpp486 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/
Dcompute_memory_pool.c664 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()