Home
last modified time | relevance | path

Searched refs:needed_size (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/num_cpus/src/
Dlib.rs156 let mut needed_size = 0; in get_num_physical_cpus_windows() localVariable
159 GetLogicalProcessorInformation(ptr::null_mut(), &mut needed_size); in get_num_physical_cpus_windows()
165 if needed_size == 0 || needed_size < struct_size || needed_size % struct_size != 0 { in get_num_physical_cpus_windows()
169 let count = needed_size / struct_size; in get_num_physical_cpus_windows()
177 result = GetLogicalProcessorInformation(buf.as_mut_ptr(), &mut needed_size); in get_num_physical_cpus_windows()
185 let count = needed_size / struct_size; in get_num_physical_cpus_windows()
/external/compiler-rt/lib/asan/
Dasan_allocator.cc345 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/
Dbit_writer_utils.c30 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/OpenCL-CTS/test_common/miniz/
Dminiz.c2780 …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
2810needed_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()