/netbsd-src/external/gpl3/gcc/dist/libgomp/ |
H A D | allocator.c | 214 size_t new_size, new_alignment; in ialias() local 243 new_size = sizeof (struct omp_mem_header); in ialias() 245 new_size += new_alignment - sizeof (void *); in ialias() 246 if (__builtin_add_overflow (size, new_size, &new_size)) in ialias() 253 if (new_size > allocator_data->pool_size) in ialias() 261 if (__builtin_add_overflow (used_pool_size, new_size, in ialias() 274 if (__builtin_add_overflow (allocator_data->used_pool_size, new_size, in ialias() 284 ptr = malloc (new_size); in ialias() 288 __atomic_add_fetch (&allocator_data->used_pool_size, -new_size, in ialias() 292 allocator_data->used_pool_size -= new_size; in ialias() [all …]
|
/netbsd-src/external/bsd/libbind/dist/isc/ |
H A D | memcluster.c | 188 size_t new_size = quantize(size); in __memget_record() local 213 if (size >= max_size || new_size >= max_size) { in __memget_record() 218 e = malloc(new_size); in __memget_record() 248 if (freelists[new_size] == NULL) { in __memget_record() 280 if (new_size > mem_target_half) in __memget_record() 291 frags = total_size / new_size; in __memget_record() 292 stats[new_size].blocks++; in __memget_record() 293 stats[new_size].freefrags += frags; in __memget_record() 296 next = curr + new_size; in __memget_record() 299 memset(curr, 0xa5, new_size); in __memget_record() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/cc_hash_table_map_/ |
H A D | resize_fn_imps.hpp | 81 resize_imp(size_type new_size) in resize_imp() argument 84 if (new_size == m_num_e) in resize_imp() 91 ranged_hash_fn_base::notify_resized(new_size); in resize_imp() 96 a_p_entries_resized = s_entry_pointer_allocator.allocate(new_size); in resize_imp() 97 m_num_e = new_size; in resize_imp() 106 resize_imp_no_exceptions(new_size, a_p_entries_resized, old_size); in resize_imp() 107 Resize_Policy::notify_resized(new_size); in resize_imp() 114 resize_imp_no_exceptions(size_type new_size, entry_pointer_array a_p_entries_resized, size_type old… in resize_imp_no_exceptions() argument 126 m_num_e = new_size; in resize_imp_no_exceptions()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/cc_hash_table_map_/ |
H A D | resize_fn_imps.hpp | 81 resize_imp(size_type new_size) in resize_imp() argument 84 if (new_size == m_num_e) in resize_imp() 91 ranged_hash_fn_base::notify_resized(new_size); in resize_imp() 96 a_p_entries_resized = s_entry_pointer_allocator.allocate(new_size); in resize_imp() 97 m_num_e = new_size; in resize_imp() 106 resize_imp_no_exceptions(new_size, a_p_entries_resized, old_size); in resize_imp() 107 Resize_Policy::notify_resized(new_size); in resize_imp() 114 resize_imp_no_exceptions(size_type new_size, entry_pointer_array a_p_entries_resized, size_type old… in resize_imp_no_exceptions() argument 126 m_num_e = new_size; in resize_imp_no_exceptions()
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/ |
H A D | split_join_fn_imps.hpp | 61 const size_type new_size = resize_policy::get_new_size_for_arbitrary(left); in split() local 69 a_entries = s_entry_allocator.allocate(new_size); in split() 75 s_entry_allocator.deallocate(a_entries, new_size); in split() 86 _GLIBCXX_DEBUG_ASSERT(new_size >= left); in split() 93 m_actual_size = new_size; in split() 121 const size_type new_size = resize_policy::get_new_size_for_arbitrary(len); in join() local 128 a_entries = s_entry_allocator.allocate(new_size); in join() 134 s_entry_allocator.deallocate(a_entries, new_size); in join() 149 m_actual_size = new_size; in join() 150 resize_policy::notify_arbitrary(new_size); in join()
|
H A D | erase_fn_imps.hpp | 53 const size_type new_size = resize_policy::get_new_size_for_arbitrary(0); in clear() 54 entry_pointer new_entries = s_entry_allocator.allocate(new_size); in clear() 55 resize_policy::notify_arbitrary(new_size); in clear() 57 m_actual_size = new_size; in clear() 118 const size_type new_size = in erase_if() 121 entry_pointer new_entries = s_entry_allocator.allocate(new_size); in erase_if() 124 m_actual_size = new_size; in erase_if() 169 const size_type new_size = resize_policy::get_new_size_for_shrink(); in resize_for_erase_if_needed() 170 entry_pointer new_entries = s_entry_allocator.allocate(new_size); in resize_for_erase_if_needed() 176 m_actual_size = new_size; in resize_for_erase_if_needed()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/ |
H A D | split_join_fn_imps.hpp | 61 const size_type new_size = resize_policy::get_new_size_for_arbitrary(left); in split() local 69 a_entries = s_entry_allocator.allocate(new_size); in split() 75 s_entry_allocator.deallocate(a_entries, new_size); in split() 86 _GLIBCXX_DEBUG_ASSERT(new_size >= left); in split() 93 m_actual_size = new_size; in split() 121 const size_type new_size = resize_policy::get_new_size_for_arbitrary(len); in join() local 128 a_entries = s_entry_allocator.allocate(new_size); in join() 134 s_entry_allocator.deallocate(a_entries, new_size); in join() 149 m_actual_size = new_size; in join() 150 resize_policy::notify_arbitrary(new_size); in join()
|
H A D | erase_fn_imps.hpp | 53 const size_type new_size = resize_policy::get_new_size_for_arbitrary(0); in clear() 54 entry_pointer new_entries = s_entry_allocator.allocate(new_size); in clear() 55 resize_policy::notify_arbitrary(new_size); in clear() 57 m_actual_size = new_size; in clear() 118 const size_type new_size = in erase_if() 121 entry_pointer new_entries = s_entry_allocator.allocate(new_size); in erase_if() 124 m_actual_size = new_size; in erase_if() 169 const size_type new_size = resize_policy::get_new_size_for_shrink(); in resize_for_erase_if_needed() 170 entry_pointer new_entries = s_entry_allocator.allocate(new_size); in resize_for_erase_if_needed() 176 m_actual_size = new_size; in resize_for_erase_if_needed()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/gp_hash_table_map_/ |
H A D | resize_fn_imps.hpp | 81 resize_imp(size_type new_size) in resize_imp() argument 87 if (new_size == m_num_e) in resize_imp() 95 a_entries_resized = s_entry_allocator.allocate(new_size); in resize_imp() 97 ranged_probe_fn_base::notify_resized(new_size); in resize_imp() 98 m_num_e = new_size; in resize_imp() 109 erase_all_valid_entries(a_entries_resized, new_size); in resize_imp() 111 s_entry_allocator.deallocate(a_entries_resized, new_size); in resize_imp() 121 Resize_Policy::notify_resized(new_size); in resize_imp()
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/gp_hash_table_map_/ |
H A D | resize_fn_imps.hpp | 81 resize_imp(size_type new_size) in resize_imp() argument 87 if (new_size == m_num_e) in resize_imp() 95 a_entries_resized = s_entry_allocator.allocate(new_size); in resize_imp() 97 ranged_probe_fn_base::notify_resized(new_size); in resize_imp() 98 m_num_e = new_size; in resize_imp() 109 erase_all_valid_entries(a_entries_resized, new_size); in resize_imp() 111 s_entry_allocator.deallocate(a_entries_resized, new_size); in resize_imp() 121 Resize_Policy::notify_resized(new_size); in resize_imp()
|
/netbsd-src/external/bsd/tre/dist/lib/ |
H A D | tre-stack.c | 86 int new_size; in tre_stack_push() local 88 new_size = s->size + s->increment; in tre_stack_push() 89 if (new_size > s->max_size) in tre_stack_push() 90 new_size = s->max_size; in tre_stack_push() 91 new_buffer = xrealloc(s->stack, sizeof(*new_buffer) * new_size); in tre_stack_push() 98 assert(new_size > s->size); in tre_stack_push() 99 s->size = new_size; in tre_stack_push()
|
H A D | xmalloc.h | 16 void *xrealloc_impl(void *ptr, size_t new_size, const char *file, int line, 51 #define xrealloc(ptr, new_size) xrealloc_impl(ptr, new_size, __FILE__, \ argument 70 #define xrealloc(ptr, new_size) realloc(ptr, new_size) argument
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_tls_get_addr.cc | 53 static inline void DTLS_Resize(uptr new_size) { in DTLS_Resize() argument 54 if (dtls.dtv_size >= new_size) return; in DTLS_Resize() 55 new_size = RoundUpToPowerOfTwo(new_size); in DTLS_Resize() 56 new_size = Max(new_size, 4096UL / sizeof(DTLS::DTV)); in DTLS_Resize() 58 (DTLS::DTV *)MmapOrDie(new_size * sizeof(DTLS::DTV), "DTLS_Resize"); in DTLS_Resize() 68 dtls.dtv_size = new_size; in DTLS_Resize()
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_tls_get_addr.cc | 51 static inline void DTLS_Resize(uptr new_size) { in DTLS_Resize() argument 52 if (dtls.dtv_size >= new_size) return; in DTLS_Resize() 53 new_size = RoundUpToPowerOfTwo(new_size); in DTLS_Resize() 54 new_size = Max(new_size, 4096UL / sizeof(DTLS::DTV)); in DTLS_Resize() 56 (DTLS::DTV *)MmapOrDie(new_size * sizeof(DTLS::DTV), "DTLS_Resize"); in DTLS_Resize() 66 dtls.dtv_size = new_size; in DTLS_Resize()
|
/netbsd-src/external/gpl2/lvm2/dist/tools/ |
H A D | pvresize.c | 22 uint64_t new_size; member 31 const uint64_t new_size) in _pv_resize_single() argument 106 if (new_size) { in _pv_resize_single() 107 if (new_size > size) in _pv_resize_single() 111 " sectors.", pv_name, new_size, pv_size(pv)); in _pv_resize_single() 112 size = new_size; in _pv_resize_single() 181 if (!_pv_resize_single(cmd, vg, pv, params->new_size)) { in _pvresize_single() 206 params.new_size = arg_uint64_value(cmd, physicalvolumesize_ARG, in pvresize()
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/ov_tree_map_/ |
H A D | erase_fn_imps.hpp | 78 size_type new_size = 0; in erase_if() local 83 ++new_size; in erase_if() 87 if (new_size == 0) in erase_if() 93 value_vector a_new_values = s_value_alloc.allocate(new_size); in erase_if() 95 cond_dtor<size_type> cd(a_new_values, target_it, new_size); in erase_if() 109 reallocate_metadata((node_update*)this, new_size); in erase_if() 117 m_size = new_size; in erase_if()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/ov_tree_map_/ |
H A D | erase_fn_imps.hpp | 78 size_type new_size = 0; in erase_if() local 83 ++new_size; in erase_if() 87 if (new_size == 0) in erase_if() 93 value_vector a_new_values = s_value_alloc.allocate(new_size); in erase_if() 95 cond_dtor<size_type> cd(a_new_values, target_it, new_size); in erase_if() 109 reallocate_metadata((node_update*)this, new_size); in erase_if() 117 m_size = new_size; in erase_if()
|
/netbsd-src/external/gpl3/binutils.old/dist/gold/ |
H A D | mremap.c | 52 gold_mremap (void *old_address, size_t old_size, size_t new_size, in gold_mremap() argument 57 ret = mmap (0, new_size, PROT_READ | PROT_WRITE, in gold_mremap() 62 old_size < new_size ? old_size : new_size); in gold_mremap() 80 size_t new_size ATTRIBUTE_UNUSED, in gold_mremap()
|
/netbsd-src/external/gpl3/binutils/dist/gold/ |
H A D | mremap.c | 52 gold_mremap (void *old_address, size_t old_size, size_t new_size, in gold_mremap() argument 57 ret = mmap (0, new_size, PROT_READ | PROT_WRITE, in gold_mremap() 62 old_size < new_size ? old_size : new_size); in gold_mremap() 80 size_t new_size ATTRIBUTE_UNUSED, in gold_mremap()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/ |
H A D | hash_load_check_resize_trigger_imp.hpp | 152 notify_resized(size_type new_size) in notify_resized() argument 155 m_next_grow_size = size_type(m_load_max * new_size - 1); in notify_resized() 156 m_next_shrink_size = size_type(m_load_min * new_size); in notify_resized() 160 << "1 " << new_size << std::endl in notify_resized() 173 notify_externally_resized(size_type new_size) in notify_externally_resized() argument 176 size_type new_grow_size = size_type(m_load_max * new_size - 1); in notify_externally_resized() 177 size_type new_shrink_size = size_type(m_load_min * new_size); in notify_externally_resized() 181 << "1 " << new_size << std::endl in notify_externally_resized()
|
/netbsd-src/external/lgpl3/mpfr/dist/tests/ |
H A D | memory.c | 82 mpfr_default_reallocate (void *oldptr, size_t old_size, size_t new_size) in mpfr_default_reallocate() argument 85 ret = realloc (oldptr, new_size); in mpfr_default_reallocate() 91 (mpfr_uintmax_t) old_size, (mpfr_uintmax_t) new_size); in mpfr_default_reallocate() 182 tests_reallocate (void *ptr, size_t old_size, size_t new_size) in tests_reallocate() argument 188 if (new_size == 0) in tests_reallocate() 221 tests_addsize (new_size); in tests_reallocate() 223 h->size = new_size; in tests_reallocate() 224 h->ptr = mpfr_default_reallocate (ptr, old_size, new_size); in tests_reallocate()
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/ |
H A D | hash_load_check_resize_trigger_imp.hpp | 152 notify_resized(size_type new_size) in notify_resized() argument 155 m_next_grow_size = size_type(m_load_max * new_size - 1); in notify_resized() 156 m_next_shrink_size = size_type(m_load_min * new_size); in notify_resized() 160 << "1 " << new_size << std::endl in notify_resized() 173 notify_externally_resized(size_type new_size) in notify_externally_resized() argument 176 size_type new_grow_size = size_type(m_load_max * new_size - 1); in notify_externally_resized() 177 size_type new_shrink_size = size_type(m_load_min * new_size); in notify_externally_resized() 181 << "1 " << new_size << std::endl in notify_externally_resized()
|
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
H A D | gl_anyhash_list2.h | 97 size_t new_size = next_prime (estimate); in hash_resize() local 99 if (new_size > list->table_size) in hash_resize() 104 (gl_hash_entry_t *) xzalloc (new_size * sizeof (gl_hash_entry_t)); in hash_resize() 116 size_t bucket = node->hashcode % new_size; in hash_resize() 125 list->table_size = new_size; in hash_resize()
|
/netbsd-src/lib/libc/stdlib/ |
H A D | _env.c | 255 size_t new_size, num_entries, required_size; in __getenvslot() local 294 new_size = ENV_ARRAY_SIZE_MIN; in __getenvslot() 295 while (new_size <= required_size) in __getenvslot() 296 new_size <<= 1; in __getenvslot() 302 new_size, sizeof(*new_environ)); in __getenvslot() 312 new_size, sizeof(*new_environ)); in __getenvslot() 321 (new_size - num_entries) * sizeof(*new_environ)); in __getenvslot() 325 allocated_environ_size = new_size; in __getenvslot()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/builtins/ |
H A D | emutls.c | 162 uintptr_t new_size = emutls_new_data_array_size(index); in emutls_get_address_array() local 163 array = calloc(new_size + 1, sizeof(void*)); in emutls_get_address_array() 164 emutls_check_array_set_size(array, new_size); in emutls_get_address_array() 167 uintptr_t new_size = emutls_new_data_array_size(index); in emutls_get_address_array() local 168 array = realloc(array, (new_size + 1) * sizeof(void*)); in emutls_get_address_array() 171 (new_size - orig_size) * sizeof(void*)); in emutls_get_address_array() 172 emutls_check_array_set_size(array, new_size); in emutls_get_address_array()
|