Searched refs:n_alloc (Results 1 – 9 of 9) sorted by relevance
/netbsd-src/external/lgpl3/mpfr/dist/src/ |
H A D | pool.c | 34 static MPFR_THREAD_ATTR int n_alloc = 0; variable 40 if (MPFR_LIKELY (n_alloc > 0)) in mpfr_mpz_init() 45 MPFR_ASSERTD (n_alloc <= numberof (mpz_tab)); in mpfr_mpz_init() 46 memcpy (z, &mpz_tab[--n_alloc], sizeof (mpz_t)); in mpfr_mpz_init() 67 if (MPFR_LIKELY (n_alloc > 0 && n <= MPFR_POOL_MAX_SIZE * GMP_NUMB_BITS)) in mpfr_mpz_init2() 72 MPFR_ASSERTD (n_alloc <= numberof (mpz_tab)); in mpfr_mpz_init2() 73 memcpy (z, &mpz_tab[--n_alloc], sizeof (mpz_t)); in mpfr_mpz_init2() 90 if (MPFR_LIKELY (n_alloc < numberof (mpz_tab) && in mpfr_mpz_clear() 94 MPFR_ASSERTD (n_alloc >= 0); in mpfr_mpz_clear() 95 memcpy (&mpz_tab[n_alloc++], z, sizeof (mpz_t)); in mpfr_mpz_clear() [all …]
|
/netbsd-src/external/bsd/libfido2/dist/src/ |
H A D | credman.c | 23 credman_grow_array(void **ptr, size_t *n_alloc, const size_t *n_rx, size_t n, in credman_grow_array() argument 35 if (n < *n_alloc) in credman_grow_array() 39 if (*n_rx > 0 || *n_rx > *n_alloc || n < *n_alloc) { in credman_grow_array() 41 *n_rx, *n_alloc); in credman_grow_array() 45 if ((new_ptr = recallocarray(*ptr, *n_alloc, n, size)) == NULL) in credman_grow_array() 49 *n_alloc = n; in credman_grow_array() 296 for (size_t i = 0; i < rk->n_alloc; i++) { in credman_reset_rk() 326 if (credman_grow_array((void **)&rk->ptr, &rk->n_alloc, &rk->n_rx, in credman_parse_rk_count() 362 if (rk->n_alloc == 0) { in credman_rx_rk() 402 if (rk->n_rx >= rk->n_alloc) { in credman_rx_next_rk() [all …]
|
H A D | bio.c | 141 for (size_t i = 0; i < ta->n_alloc; i++) in bio_reset_template_array() 181 if (ta->n_rx >= ta->n_alloc) { in decode_template_array() 215 if (ta->ptr != NULL || ta->n_alloc != 0 || ta->n_rx != 0) { in bio_parse_template_array() 224 ta->n_alloc = cbor_array_size(val); in bio_parse_template_array() 828 if (idx >= ta->n_alloc) in fido_bio_template()
|
/netbsd-src/lib/librefuse/refuse/ |
H A D | chan.c | 60 size_t n_alloc; member 116 for (idx = 0; idx < (int)storage.n_alloc; idx++) { in fuse_chan_stash() 124 storage.n_alloc = (storage.n_alloc + 8) * 2; in fuse_chan_stash() 125 storage.vec = realloc(storage.vec, sizeof(struct fuse_chan*) * storage.n_alloc); in fuse_chan_stash() 133 memset(&storage.vec[idx+1], 0, sizeof(struct fuse_chan*) * (storage.n_alloc - (size_t)idx - 1)); in fuse_chan_stash() 153 if (idx >= 0 && idx < (int)storage.n_alloc) { in fuse_chan_peek() 175 if (idx >= 0 && idx < (int)storage.n_alloc) { in fuse_chan_take() 201 for (idx = 0; idx < (int)storage.n_alloc; idx++) { in fuse_chan_find()
|
/netbsd-src/external/bsd/flex/dist/src/ |
H A D | buf.c | 235 int n_alloc = 0; in buf_append() local 244 n_alloc = n_elem + buf->nelts; in buf_append() 247 if ((((size_t) n_alloc * buf->elt_size) % 512) != 0 in buf_append() 249 n_alloc += (int) in buf_append() 251 (((size_t) n_alloc * buf->elt_size) % 512)) / in buf_append() 256 allocate_array ((int) n_alloc, buf->elt_size); in buf_append() 259 reallocate_array (buf->elts, (int) n_alloc, in buf_append() 262 buf->nmax = n_alloc; in buf_append()
|
/netbsd-src/external/bsd/libfido2/dist/src/fido/ |
H A D | credman.h | 63 size_t n_alloc; /* number of allocated entries */ member 69 size_t n_alloc; /* number of allocated entries */ member
|
H A D | bio.h | 58 size_t n_alloc; /* number of allocated entries */ member
|
/netbsd-src/external/bsd/flex/dist/ |
H A D | ChangeLog | 1116 …* src/buf.c: Fixed size of bufferallocation, resolved gh#54. The value of n_alloc was a count, no…
|
/netbsd-src/external/gpl3/gcc/dist/gcc/ |
H A D | ChangeLog-2001 | 18044 (build_abbrev_table): Declare n_alloc as int.
|