Home
last modified time | relevance | path

Searched refs:new_allocated (Results 1 - 8 of 8) sorted by relevance

/third_party/node/deps/brotli/c/enc/
H A Dmemory.c45 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 in BrotliAllocate()
[all...]
H A Dmemory.h33 size_t new_allocated; member
/third_party/skia/third_party/externals/brotli/c/enc/
H A Dmemory.c45 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 in BrotliAllocate()
[all...]
H A Dmemory.h33 size_t new_allocated; member
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-vector.hh218 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()
H A Dhb-buffer.cc125 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/python/Objects/
H A Dlistobject.c47 size_t new_allocated, num_allocated_bytes; in list_resize() local
67 * Note: new_allocated won't overflow because the largest possible value in list_resize()
70 new_allocated = ((size_t)newsize + (newsize >> 3) + 6) & ~(size_t)3; in list_resize()
74 if (newsize - Py_SIZE(self) > (Py_ssize_t)(new_allocated - newsize)) in list_resize()
75 new_allocated = ((size_t)newsize + 3) & ~(size_t)3; in list_resize()
78 new_allocated = 0; in list_resize()
79 if (new_allocated <= (size_t)PY_SSIZE_T_MAX / sizeof(PyObject *)) { in list_resize()
80 num_allocated_bytes = new_allocated * sizeof(PyObject *); in list_resize()
93 self->allocated = new_allocated; in list_resize()
/third_party/python/Modules/
H A D_pickle.c512 size_t new_allocated; in Pdata_grow() local
514 new_allocated = (allocated >> 3) + 6; in Pdata_grow()
516 if (new_allocated > (size_t)PY_SSIZE_T_MAX - allocated) in Pdata_grow()
518 new_allocated += allocated; in Pdata_grow()
519 PyMem_RESIZE(data, PyObject *, new_allocated); in Pdata_grow()
524 self->allocated = (Py_ssize_t)new_allocated; in Pdata_grow()

Completed in 18 milliseconds