Home
last modified time | relevance | path

Searched refs:new_alloc (Results 1 – 8 of 8) sorted by relevance

/dflybsd-src/contrib/gmp/mpz/
H A Drealloc.c27 _mpz_realloc (mpz_ptr m, mp_size_t new_alloc) in _mpz_realloc() argument
32 new_alloc = MAX (new_alloc, 1); in _mpz_realloc()
36 if (UNLIKELY (new_alloc > ULONG_MAX / GMP_NUMB_BITS)) in _mpz_realloc()
44 if (UNLIKELY (new_alloc > INT_MAX)) in _mpz_realloc()
51 mp = __GMP_REALLOCATE_FUNC_LIMBS (PTR(m), ALLOC(m), new_alloc); in _mpz_realloc()
53 ALLOC(m) = new_alloc; in _mpz_realloc()
57 if (ABSIZ(m) > new_alloc) in _mpz_realloc()
H A Drealloc2.c28 mp_size_t new_alloc; in mpz_realloc2() local
31 new_alloc = 1 + bits / GMP_NUMB_BITS; in mpz_realloc2()
35 if (UNLIKELY (new_alloc > INT_MAX)) in mpz_realloc2()
42 PTR(m) = __GMP_REALLOCATE_FUNC_LIMBS (PTR(m), ALLOC(m), new_alloc); in mpz_realloc2()
43 ALLOC(m) = new_alloc; in mpz_realloc2()
47 if (ABSIZ(m) > new_alloc) in mpz_realloc2()
H A Dinit2.c28 mp_size_t new_alloc; in mpz_init2() local
31 new_alloc = 1 + bits / GMP_NUMB_BITS; in mpz_init2()
35 if (UNLIKELY (new_alloc > INT_MAX)) in mpz_init2()
42 PTR(x) = __GMP_ALLOCATE_FUNC_LIMBS (new_alloc); in mpz_init2()
43 ALLOC(x) = new_alloc; in mpz_init2()
/dflybsd-src/contrib/cvs-1.12/lib/
H A Dregex_internal.c966 Idx new_alloc = src1->nelem + src2->nelem + dest->alloc; in re_node_set_add_intersect() local
969 && (new_alloc < dest->alloc in re_node_set_add_intersect()
972 new_elems = re_xrealloc (dest->elems, Idx, new_alloc); in re_node_set_add_intersect()
976 dest->alloc = new_alloc; in re_node_set_add_intersect()
1117 Idx new_alloc = src->nelem + dest->alloc; in re_node_set_merge() local
1119 if (sizeof (Idx) < 4 && new_alloc < dest->alloc) in re_node_set_merge()
1121 new_buffer = re_x2realloc (dest->elems, Idx, &new_alloc); in re_node_set_merge()
1125 dest->alloc = new_alloc; in re_node_set_merge()
1501 Idx new_alloc = spot->num; in register_state() local
1503 &new_alloc); in register_state()
[all …]
H A Dregexec.c2880 Idx new_alloc = old_alloc + last_str + mctx->max_mb_elem_len + 1; in check_arrival() local
2881 if (BE (new_alloc < old_alloc, 0)) in check_arrival()
2883 new_array = re_xrealloc (path->array, re_dfastate_t *, new_alloc); in check_arrival()
2887 path->alloc = new_alloc; in check_arrival()
2889 sizeof (re_dfastate_t *) * (new_alloc - old_alloc)); in check_arrival()
/dflybsd-src/contrib/grep/lib/
H A Dregex_internal.c1063 Idx new_alloc = src1->nelem + src2->nelem + dest->alloc; in re_node_set_add_intersect() local
1064 Idx *new_elems = re_realloc (dest->elems, Idx, new_alloc); in re_node_set_add_intersect()
1068 dest->alloc = new_alloc; in re_node_set_add_intersect()
1203 Idx new_alloc = 2 * (src->nelem + dest->alloc); in re_node_set_merge() local
1204 Idx *new_buffer = re_realloc (dest->elems, Idx, new_alloc); in re_node_set_merge()
1208 dest->alloc = new_alloc; in re_node_set_merge()
1588 Idx new_alloc = 2 * spot->num + 2; in register_state() local
1590 new_alloc); in register_state()
1594 spot->alloc = new_alloc; in register_state()
H A Dregexec.c2846 Idx new_alloc; in check_arrival() local
2849 new_alloc = old_alloc + incr_alloc; in check_arrival()
2850 if (__glibc_unlikely (SIZE_MAX / sizeof (re_dfastate_t *) < new_alloc)) in check_arrival()
2852 new_array = re_realloc (path->array, re_dfastate_t *, new_alloc); in check_arrival()
2856 path->alloc = new_alloc; in check_arrival()
/dflybsd-src/crypto/openssh/
H A Dssh-agent.c1896 u_int i, old_alloc, new_alloc; in new_socket() local
1916 new_alloc = sockets_alloc + 10; in new_socket()
1917 sockets = xrecallocarray(sockets, old_alloc, new_alloc, in new_socket()
1919 for (i = old_alloc; i < new_alloc; i++) in new_socket()
1921 sockets_alloc = new_alloc; in new_socket()