Searched refs:needed_size (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/num_cpus/src/ |
D | lib.rs | 153 let mut needed_size = 0; in get_num_physical_cpus_windows() localVariable 156 GetLogicalProcessorInformation(ptr::null_mut(), &mut needed_size); in get_num_physical_cpus_windows() 162 if needed_size == 0 || needed_size < struct_size || needed_size % struct_size != 0 { in get_num_physical_cpus_windows() 166 let count = needed_size / struct_size; in get_num_physical_cpus_windows() 174 result = GetLogicalProcessorInformation(buf.as_mut_ptr(), &mut needed_size); in get_num_physical_cpus_windows() 182 let count = needed_size / struct_size; in get_num_physical_cpus_windows()
|
/external/compiler-rt/lib/asan/ |
D | asan_allocator.cc | 345 uptr needed_size = rounded_size + rz_size; in Allocate() local 347 needed_size += alignment; in Allocate() 351 if (!PrimaryAllocator::CanAllocate(needed_size, alignment)) { in Allocate() 352 needed_size += rz_size; in Allocate() 355 CHECK(IsAligned(needed_size, min_alignment)); in Allocate() 356 if (size > kMaxAllowedMallocSize || needed_size > kMaxAllowedMallocSize) { in Allocate() 368 allocator.Allocate(cache, needed_size, 8, false, check_rss_limit); in Allocate() 373 allocator.Allocate(cache, needed_size, 8, false, check_rss_limit); in Allocate() 389 uptr alloc_end = alloc_beg + needed_size; in Allocate() 439 thread_stats.malloced_redzones += needed_size - size; in Allocate() [all …]
|
/external/webp/src/utils/ |
D | bit_writer_utils.c | 30 const size_t needed_size = (size_t)needed_size_64b; in BitWriterResize() local 31 if (needed_size_64b != needed_size) { in BitWriterResize() 35 if (needed_size <= bw->max_pos_) return 1; in BitWriterResize() 38 if (new_size < needed_size) new_size = needed_size; in BitWriterResize()
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_allocator.cpp | 513 uptr needed_size = rounded_size + rz_size; in Allocate() local 515 needed_size += alignment; in Allocate() 518 if (!PrimaryAllocator::CanAllocate(needed_size, alignment)) in Allocate() 519 needed_size += rz_size; in Allocate() 520 CHECK(IsAligned(needed_size, min_alignment)); in Allocate() 521 if (size > kMaxAllowedMallocSize || needed_size > kMaxAllowedMallocSize || in Allocate() 530 ReportAllocationSizeTooBig(size, needed_size, malloc_limit, stack); in Allocate() 537 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 541 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 560 uptr alloc_end = alloc_beg + needed_size; in Allocate() [all …]
|
/external/llvm-project/compiler-rt/lib/memprof/ |
D | memprof_allocator.cpp | 537 uptr needed_size = rounded_size + kChunkHeaderSize; in Allocate() local 539 needed_size += alignment; in Allocate() 540 CHECK(IsAligned(needed_size, min_alignment)); in Allocate() 541 if (size > kMaxAllowedMallocSize || needed_size > kMaxAllowedMallocSize || in Allocate() 557 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 561 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 571 uptr alloc_end = alloc_beg + needed_size; in Allocate() 595 thread_stats.malloced_overhead += needed_size - size; in Allocate() 596 if (needed_size > SizeClassMap::kMaxSize) in Allocate() 599 thread_stats.malloced_by_size[SizeClassMap::ClassID(needed_size)]++; in Allocate()
|
/external/OpenCL-CTS/test_common/miniz/ |
D | miniz.c | 2780 …mz_uint64 needed_size, cur_file_ofs, comp_remaining, out_buf_ofs = 0, read_buf_size, read_buf_ofs … in mz_zip_reader_extract_to_mem_no_alloc() local 2810 …needed_size = (flags & MZ_ZIP_FLAG_COMPRESSED_DATA) ? file_stat.m_comp_size : file_stat.m_uncomp_s… in mz_zip_reader_extract_to_mem_no_alloc() 2811 if (buf_size < needed_size) in mz_zip_reader_extract_to_mem_no_alloc() 2828 if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, (size_t)needed_size) != needed_size) in mz_zip_reader_extract_to_mem_no_alloc()
|