/third_party/node/deps/brotli/c/enc/ |
D | memory.c | 45 m->new_allocated = 0; in BrotliInitMemoryManager() 110 SortPointers(m->pointers + NEW_ALLOCATED_OFFSET, m->new_allocated); in CollectGarbagePointers() 113 m->pointers + NEW_ALLOCATED_OFFSET, m->new_allocated, in CollectGarbagePointers() 115 m->new_allocated -= annihilated; in CollectGarbagePointers() 127 if (m->new_allocated != 0) { in CollectGarbagePointers() 128 BROTLI_DCHECK(m->perm_allocated + m->new_allocated <= MAX_PERM_ALLOCATED); in CollectGarbagePointers() 131 sizeof(void*) * m->new_allocated); in CollectGarbagePointers() 132 m->perm_allocated += m->new_allocated; in CollectGarbagePointers() 133 m->new_allocated = 0; in CollectGarbagePointers() 144 if (m->new_allocated == MAX_NEW_ALLOCATED) CollectGarbagePointers(m); in BrotliAllocate() [all …]
|
D | memory.h | 33 size_t new_allocated; member
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
D | memory.c | 45 m->new_allocated = 0; in BrotliInitMemoryManager() 110 SortPointers(m->pointers + NEW_ALLOCATED_OFFSET, m->new_allocated); in CollectGarbagePointers() 113 m->pointers + NEW_ALLOCATED_OFFSET, m->new_allocated, in CollectGarbagePointers() 115 m->new_allocated -= annihilated; in CollectGarbagePointers() 127 if (m->new_allocated != 0) { in CollectGarbagePointers() 128 BROTLI_DCHECK(m->perm_allocated + m->new_allocated <= MAX_PERM_ALLOCATED); in CollectGarbagePointers() 131 sizeof(void*) * m->new_allocated); in CollectGarbagePointers() 132 m->perm_allocated += m->new_allocated; in CollectGarbagePointers() 133 m->new_allocated = 0; in CollectGarbagePointers() 144 if (m->new_allocated == MAX_NEW_ALLOCATED) CollectGarbagePointers(m); in BrotliAllocate() [all …]
|
D | memory.h | 33 size_t new_allocated; member
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-vector.hh | 192 unsigned int new_allocated = allocated; in alloc() local 193 while (size >= new_allocated) in alloc() 194 new_allocated += (new_allocated >> 1) + 8; in alloc() 198 (int) new_allocated < 0 || in alloc() 199 (new_allocated < (unsigned) allocated) || in alloc() 200 hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); in alloc() 202 new_array = (Type *) realloc (arrayZ, new_allocated * sizeof (Type)); in alloc() 211 allocated = new_allocated; in alloc()
|
D | hb-buffer.cc | 123 unsigned int new_allocated = allocated; in enlarge() local 131 while (size >= new_allocated) in enlarge() 132 new_allocated += (new_allocated >> 1) + 32; in enlarge() 135 if (unlikely (hb_unsigned_mul_overflows (new_allocated, sizeof (info[0])))) in enlarge() 138 new_pos = (hb_glyph_position_t *) realloc (pos, new_allocated * sizeof (pos[0])); in enlarge() 139 new_info = (hb_glyph_info_t *) realloc (info, new_allocated * sizeof (info[0])); in enlarge() 153 allocated = new_allocated; in enlarge()
|
/third_party/gettext/libtextstyle/gnulib-local/lib/ |
D | memory-ostream.oo.c | 51 size_t new_allocated = in write_mem() local 54 if (size_overflow_p (new_allocated)) in write_mem() 58 stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); in write_mem() 59 stream->allocated = new_allocated; in write_mem()
|
D | term-styled-ostream.oo.c | 544 size_t new_allocated = stream->curr_classes_length + 1 + classname_len + 1; in begin_use_class() local 545 if (new_allocated < 2 * stream->curr_classes_allocated) in begin_use_class() 546 new_allocated = 2 * stream->curr_classes_allocated; in begin_use_class() 548 stream->curr_classes = xrealloc (stream->curr_classes, new_allocated); in begin_use_class() 549 stream->curr_classes_allocated = new_allocated; in begin_use_class()
|
D | term-ostream.oo.c | 2011 size_t new_allocated = in write_mem() local 2014 if (size_overflow_p (new_allocated)) in write_mem() 2018 stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); in write_mem() 2022 new_allocated * sizeof (attributes_t)); in write_mem() 2023 stream->allocated = new_allocated; in write_mem()
|
/third_party/harfbuzz/src/ |
D | hb-vector.hh | 202 unsigned int new_allocated = allocated; in alloc() local 203 while (size >= new_allocated) in alloc() 204 new_allocated += (new_allocated >> 1) + 8; in alloc() 209 (new_allocated < (unsigned) allocated) || in alloc() 210 hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); in alloc() 212 new_array = (Type *) realloc (arrayZ, new_allocated * sizeof (Type)); in alloc() 221 allocated = new_allocated; in alloc()
|
D | hb-buffer.cc | 124 unsigned int new_allocated = allocated; in enlarge() local 132 while (size >= new_allocated) in enlarge() 133 new_allocated += (new_allocated >> 1) + 32; in enlarge() 136 if (unlikely (hb_unsigned_mul_overflows (new_allocated, sizeof (info[0])))) in enlarge() 139 new_pos = (hb_glyph_position_t *) realloc (pos, new_allocated * sizeof (pos[0])); in enlarge() 140 new_info = (hb_glyph_info_t *) realloc (info, new_allocated * sizeof (info[0])); in enlarge() 154 allocated = new_allocated; in enlarge()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-vector.hh | 218 unsigned int new_allocated = allocated; in alloc() local 219 while (size >= new_allocated) in alloc() 220 new_allocated += (new_allocated >> 1) + 8; in alloc() 225 (new_allocated < (unsigned) allocated) || in alloc() 226 hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); in alloc() 228 new_array = (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); in alloc() 237 allocated = new_allocated; in alloc()
|
D | hb-buffer.cc | 125 unsigned int new_allocated = allocated; in enlarge() local 133 while (size >= new_allocated) in enlarge() 134 new_allocated += (new_allocated >> 1) + 32; in enlarge() 137 if (unlikely (hb_unsigned_mul_overflows (new_allocated, sizeof (info[0])))) in enlarge() 140 new_pos = (hb_glyph_position_t *) hb_realloc (pos, new_allocated * sizeof (pos[0])); in enlarge() 141 new_info = (hb_glyph_info_t *) hb_realloc (info, new_allocated * sizeof (info[0])); in enlarge() 155 allocated = new_allocated; in enlarge()
|
/third_party/gettext/gettext-tools/src/ |
D | msgl-fsearch.c | 120 size_t new_allocated = 2 * length - (length >> 6); in addlast_index() local 121 list = (index_ty *) xrealloc (list, (2 + new_allocated) * sizeof (index_ty)); in addlast_index() 122 list[IL_ALLOCATED] = new_allocated; in addlast_index() 159 size_t new_allocated = 2 * length - (length >> 6); in add_index() local 160 list = (index_ty *) xrealloc (list, (2 + new_allocated) * sizeof (index_ty)); in add_index() 161 list[IL_ALLOCATED] = new_allocated; in add_index()
|
D | xg-mixed-string.c | 431 size_t new_allocated = 2 * bp->curr_allocated + 10; in mixed_string_buffer_grow_curr_buffer() local 432 if (new_allocated < bp->curr_buflen + count) in mixed_string_buffer_grow_curr_buffer() 433 new_allocated = bp->curr_buflen + count; in mixed_string_buffer_grow_curr_buffer() 434 bp->curr_allocated = new_allocated; in mixed_string_buffer_grow_curr_buffer() 435 bp->curr_buffer = xrealloc (bp->curr_buffer, new_allocated); in mixed_string_buffer_grow_curr_buffer() 521 size_t new_allocated = in mixed_string_buffer_add_segment() local 526 new_allocated * sizeof (struct mixed_string_segment *)); in mixed_string_buffer_add_segment()
|
/third_party/python/Objects/ |
D | listobject.c | 39 size_t new_allocated, num_allocated_bytes; in list_resize() local 62 new_allocated = ((size_t)newsize + (newsize >> 3) + 6) & ~(size_t)3; in list_resize() 66 if (newsize - Py_SIZE(self) > (Py_ssize_t)(new_allocated - newsize)) in list_resize() 67 new_allocated = ((size_t)newsize + 3) & ~(size_t)3; in list_resize() 70 new_allocated = 0; in list_resize() 71 num_allocated_bytes = new_allocated * sizeof(PyObject *); in list_resize() 79 self->allocated = new_allocated; in list_resize()
|
/third_party/python/Modules/ |
D | _pickle.c | 500 size_t new_allocated; in Pdata_grow() local 502 new_allocated = (allocated >> 3) + 6; in Pdata_grow() 504 if (new_allocated > (size_t)PY_SSIZE_T_MAX - allocated) in Pdata_grow() 506 new_allocated += allocated; in Pdata_grow() 507 PyMem_RESIZE(data, PyObject *, new_allocated); in Pdata_grow() 512 self->allocated = (Py_ssize_t)new_allocated; in Pdata_grow()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/ |
D | symbolize_elf.inc | 273 int new_allocated = allocated_ * 2 + 50; 276 new_allocated * sizeof(*new_obj_), SigSafeArena())); 282 allocated_ = new_allocated;
|
/third_party/abseil-cpp/absl/debugging/ |
D | symbolize_elf.inc | 273 int new_allocated = allocated_ * 2 + 50; 276 new_allocated * sizeof(*new_obj_), SigSafeArena())); 282 allocated_ = new_allocated;
|