alloc
using __STD::alloc;
(_CharT*)alloc::allocate(__len * sizeof(_CharT));
alloc::deallocate(__buffer, __len * sizeof(_CharT));
__STL_UNWIND((alloc::deallocate(__buffer,
void unique () { if (rep ()->ref > 1) alloc (length (), true); }
void alloc (size_type size, bool save);
class Allocator = alloc >
static alloc __node_allocator_dummy_instance;
typedef alloc _Alloc; // The underlying allocator.
typedef simple_alloc<_Tp, alloc> _Alloc_type;
typedef vector<bool, alloc> bit_vector;
# define __STL_DEFAULT_ALLOCATOR(T) alloc
class _ExtractKey, class _EqualKey, class _Alloc = alloc>
void init_dynamic(_IO_alloc_type alloc, _IO_free_type free,
SpanAllocator& alloc, SpanGenerator& span_gen)
typename BaseRenderer::color_type* colors = alloc.allocate(len);
SpanAllocator& alloc, SpanGenerator& span_gen)
render_scanline_aa(sl, ren, alloc, span_gen);
alloc_type& alloc,
m_alloc(&alloc),
alloc_type& alloc,
m_alloc = &alloc;
SpanAllocator& alloc, SpanGenerator& span_gen)
typename BaseRenderer::color_type* colors = alloc.allocate(len);
SpanAllocator& alloc, SpanGenerator& span_gen)
render_scanline_bin(sl, ren, alloc, span_gen);
alloc_type& alloc,
m_alloc(&alloc),
alloc_type& alloc,
m_alloc = &alloc;
SpanAllocator& alloc,
color_type* color_span = alloc.allocate(len * 2);
acpi_mcfg_allocation *alloc = (acpi_mcfg_allocation *) (mcfg + 1);
if (alloc + 1 != end)
for (; alloc < end; alloc++) {
alloc->address, alloc->pci_segment, alloc->start_bus_number, alloc->end_bus_number);
if (alloc->pci_segment != 0) {
fStartBusNumber = alloc->start_bus_number;
fEndBusNumber = alloc->end_bus_number;
alloc->address, fRegsLen, B_ANY_KERNEL_ADDRESS,
uint32 bufferSize, alloc;
alloc = bufferSize * stream->num_buffers;
alloc = PAGE_ALIGN(alloc);
B_ANY_KERNEL_ADDRESS, alloc, B_32_BIT_CONTIGUOUS,
rc = get_memory_map(buffer, alloc, &pe, 1);
alloc, stream->num_buffers);
alloc = stream->num_buffers * sizeof(struct acc_prd) + 1;
alloc = PAGE_ALIGN(alloc);
(void**)&bufferDescriptors, B_ANY_KERNEL_ADDRESS, alloc,
rc = get_memory_map(bufferDescriptors, alloc, &pe, 1);
alloc, stream->num_buffers);
uint32 alloc = stream->buffer_size * stream->num_buffers;
alloc = PAGE_ALIGN(alloc);
B_ANY_KERNEL_ADDRESS, alloc,
status_t status = get_memory_map(buffer, alloc, &pe, 1);
" buffers\n", __func__, desc, alloc, stream->num_buffers);
alloc = bdlCount * sizeof(bdl_entry_t);
alloc = PAGE_ALIGN(alloc);
(void**)&bufferDescriptors, B_ANY_KERNEL_ADDRESS, alloc,
status = get_memory_map(bufferDescriptors, alloc, &pe, 1);
" BDLEs\n", __func__, desc, alloc, bdlCount);
cmd.alloc.sta_id_mask = htole32(1 << IWX_STATION_ID);
cmd.alloc.tid = tid;
cmd.alloc.ssn = htole16(ssn);
cmd.alloc.win_size = htole16(winsize);
struct iwx_rx_baid_cfg_cmd_alloc alloc;
vn_vget_ino_gen(struct vnode* vp, vn_get_ino_t alloc, void* alloc_arg, int lkflags,
return alloc(bsdVolume, alloc_arg, lkflags, rvp);
int vn_vget_ino_gen(struct vnode* vp, vn_get_ino_t alloc, void* alloc_arg, int lkflags,
bool alloc)
if (!alloc && (frmp == NULL || frmlen == NULL))
if (!alloc && len > *frmlen)
if (alloc) {
if (!alloc) {
if (!q->alloc)
off = q->elements - q->alloc;
q->alloc = solv_realloc2(q->alloc, off + q->count + n + EXTRA_SPACE, sizeof(Id));
q->elements = q->alloc + off;
if (!q->alloc)
off = q->elements - q->alloc;
q->alloc = solv_realloc2(q->alloc, off + q->count + n + EXTRA_SPACE, sizeof(Id));
q->elements = q->alloc + off;
q->alloc = q->elements = 0;
t->alloc = t->elements = 0;
t->alloc = t->elements = solv_malloc2(s->count + EXTRA_SPACE, sizeof(Id));
memcpy(t->alloc, s->elements, s->count * sizeof(Id));
q->alloc = 0;
if (q->alloc)
solv_free(q->alloc);
q->alloc = q->elements = 0;
if (!q->alloc)
q->alloc = solv_malloc2(q->count + EXTRA_SPACE, sizeof(Id));
memcpy(q->alloc, q->elements, q->count * sizeof(Id));
q->elements = q->alloc;
else if (q->alloc != q->elements)
int l = q->elements - q->alloc;
memmove(q->alloc, q->elements, q->count * sizeof(Id));
q->elements = q->alloc = solv_realloc2(q->alloc, q->count + EXTRA_SPACE, sizeof(Id));
if (!q->alloc || !q->left)
Id *alloc; /* this is whats actually allocated, elements > alloc if shifted */
if (q->alloc)
q->left += (q->elements - q->alloc) + q->count;
q->elements = q->alloc;
if (!q->alloc || q->alloc == q->elements)
void strstreambuf::init_dynamic(_IO_alloc_type alloc, _IO_free_type free,
_s._allocate_buffer = alloc ? alloc : default_alloc;
LookupPte(addr_t virtAdr, bool alloc)
if (!alloc)
LookupPte(addr_t virtAdr, bool alloc)
if (!alloc)
if (!alloc)
RISCV64VMTranslationMap::LookupPte(addr_t virtAdr, bool alloc,
if (!alloc)
std::atomic<Pte>* LookupPte(addr_t virtAdr, bool alloc,
LookupPte(addr_t virtAdr, bool alloc, kernel_args* args)
if (!alloc)
Idx alloc = 0;
mbcset, &alloc,
dest->alloc = dest->nelem;
dest->elems = re_malloc (Idx, dest->alloc);
dest->alloc = dest->nelem = 0;
if (src1->nelem + src2->nelem + dest->nelem > dest->alloc)
Idx new_alloc = src1->nelem + src2->nelem + dest->alloc;
dest->alloc = new_alloc;
dest->alloc = src1->nelem + src2->nelem;
dest->elems = re_malloc (Idx, dest->alloc);
if (dest->alloc < 2 * src->nelem + dest->nelem)
Idx new_alloc = 2 * (src->nelem + dest->alloc);
dest->alloc = new_alloc;
if (set->alloc == 0)
if (set->alloc == set->nelem)
set->alloc = set->alloc * 2;
new_elems = re_realloc (set->elems, Idx, set->alloc);
if (set->alloc == set->nelem)
set->alloc = (set->alloc + 1) * 2;
new_elems = re_realloc (set->elems, Idx, set->alloc);
if (BE (spot->alloc <= spot->num, 0))
spot->alloc = new_alloc;
set->alloc = size;
set->alloc = 1;
set->alloc = set->nelem = 0;
set->alloc = 2;
Idx alloc;
Idx alloc;
Idx alloc;
Idx alloc;
if (fs->num == fs->alloc)
fs->alloc * 2);
fs->alloc *= 2;
fs->stack = re_malloc (struct re_fail_stack_ent_t, fs->alloc);
if (!state->inveclosure.alloc)
if (BE (path->alloc < last_str + mctx->max_mb_elem_len + 1, 0))
Idx old_alloc = path->alloc;
path->alloc = new_alloc;
sizeof (re_dfastate_t *) * (path->alloc - old_alloc));