| /dflybsd-src/contrib/gdb-7/gdb/common/ |
| H A D | vec.c | 31 unsigned alloc; member 42 unsigned alloc = 0; in calculate_allocation() local 47 alloc = pfx->alloc; in calculate_allocation() 56 gdb_assert (alloc - num < (unsigned)(reserve < 0 ? -reserve : reserve)); in calculate_allocation() 60 alloc = num + -reserve; in calculate_allocation() 64 if (!alloc) in calculate_allocation() 65 alloc = 4; in calculate_allocation() 66 else if (alloc < 16) in calculate_allocation() 68 alloc = alloc * 2; in calculate_allocation() 71 alloc = (alloc * 3 / 2); in calculate_allocation() [all …]
|
| /dflybsd-src/contrib/gcc-4.7/gcc/ |
| H A D | vec.c | 172 unsigned alloc = 0; in calculate_allocation() local 179 alloc = pfx->alloc; in calculate_allocation() 188 gcc_assert (alloc - num < (unsigned) reserve); in calculate_allocation() 192 alloc = num + reserve; in calculate_allocation() 196 if (!alloc) in calculate_allocation() 197 alloc = 4; in calculate_allocation() 198 else if (alloc < 16) in calculate_allocation() 200 alloc = alloc * 2; in calculate_allocation() 203 alloc = (alloc * 3 / 2); in calculate_allocation() 206 if (alloc < num + reserve) in calculate_allocation() [all …]
|
| H A D | gcov-io.c | 175 gcov_var.alloc = 0; in gcov_close() 207 size_t new_size = gcov_var.alloc; in gcov_allocate() 214 gcov_var.alloc = new_size; in gcov_allocate() 251 if (gcov_var.offset + words > gcov_var.alloc) in gcov_write_words() 296 unsigned alloc = 0; in gcov_write_string() local 302 alloc = (length + 4) >> 2; in gcov_write_string() 305 buffer = gcov_write_words (1 + alloc); in gcov_write_string() 307 buffer[0] = alloc; in gcov_write_string() 308 buffer[alloc] = 0; in gcov_write_string() 417 if (gcov_var.length + words > gcov_var.alloc) in gcov_read_words() [all …]
|
| /dflybsd-src/contrib/zstd/lib/compress/ |
| H A D | zstd_cwksp.h | 239 void* alloc; in ZSTD_cwksp_reserve_internal() local 242 alloc = (BYTE *)ws->allocStart - bytes; in ZSTD_cwksp_reserve_internal() 249 alloc = (BYTE *)alloc - 2 * ZSTD_CWKSP_ASAN_REDZONE_SIZE; in ZSTD_cwksp_reserve_internal() 253 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_internal() 255 assert(alloc >= bottom); in ZSTD_cwksp_reserve_internal() 256 if (alloc < bottom) { in ZSTD_cwksp_reserve_internal() 261 if (alloc < ws->tableValidEnd) { in ZSTD_cwksp_reserve_internal() 262 ws->tableValidEnd = alloc; in ZSTD_cwksp_reserve_internal() 264 ws->allocStart = alloc; in ZSTD_cwksp_reserve_internal() 269 alloc = (BYTE *)alloc + ZSTD_CWKSP_ASAN_REDZONE_SIZE; in ZSTD_cwksp_reserve_internal() [all …]
|
| /dflybsd-src/crypto/openssh/ |
| H A D | sshbuf.c | 35 buf->size, buf->alloc, buf->off, buf->max_size); \ 48 size_t alloc; /* Total bytes allocated to buf->d */ member 63 buf->alloc > buf->max_size || in sshbuf_check_sanity() 64 buf->size > buf->alloc || in sshbuf_check_sanity() 98 ret->alloc = SSHBUF_SIZE_INIT; in sshbuf_new() 103 if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) { in sshbuf_new() 118 ret->alloc = ret->size = ret->max_size = len; in sshbuf_from() 189 explicit_bzero(buf->d, buf->alloc); in sshbuf_free() 208 if (buf->alloc != SSHBUF_SIZE_INIT) { in sshbuf_reset() 209 if ((d = recallocarray(buf->d, buf->alloc, SSHBUF_SIZE_INIT, in sshbuf_reset() [all …]
|
| /dflybsd-src/contrib/gmp/mpq/ |
| H A D | div.c | 34 mp_size_t alloc; in mpq_div() local 57 alloc = MIN (op1_num_size, op2_num_size); in mpq_div() 58 MPZ_TMP_INIT (gcd1, alloc); in mpq_div() 60 alloc = MIN (op1_den_size, op2_den_size); in mpq_div() 61 MPZ_TMP_INIT (gcd2, alloc); in mpq_div() 63 alloc = MAX (op1_num_size, op2_num_size); in mpq_div() 64 MPZ_TMP_INIT (tmp1, alloc); in mpq_div() 66 alloc = MAX (op1_den_size, op2_den_size); in mpq_div() 67 MPZ_TMP_INIT (tmp2, alloc); in mpq_div() 69 alloc = op1_num_size + op2_den_size; in mpq_div() [all …]
|
| H A D | mul.c | 34 mp_size_t alloc; in mpq_mul() local 62 alloc = MIN (op1_num_size, op2_den_size); in mpq_mul() 63 MPZ_TMP_INIT (gcd1, alloc); in mpq_mul() 65 alloc = MIN (op2_num_size, op1_den_size); in mpq_mul() 66 MPZ_TMP_INIT (gcd2, alloc); in mpq_mul() 68 alloc = MAX (op1_num_size, op2_den_size); in mpq_mul() 69 MPZ_TMP_INIT (tmp1, alloc); in mpq_mul() 71 alloc = MAX (op2_num_size, op1_den_size); in mpq_mul() 72 MPZ_TMP_INIT (tmp2, alloc); in mpq_mul()
|
| /dflybsd-src/contrib/gmp/printf/ |
| H A D | snprntffuns.c | 62 int ret, step, alloc, avail; in gmp_snprintf_format() local 87 alloc = MAX (128, ret); in gmp_snprintf_format() 92 alloc = 128; in gmp_snprintf_format() 97 alloc *= 2; in gmp_snprintf_format() 98 p = __GMP_ALLOCATE_FUNC_TYPE (alloc, char); in gmp_snprintf_format() 100 ret = vsnprintf (p, alloc, fmt, ap); in gmp_snprintf_format() 101 (*__gmp_free_func) (p, alloc); in gmp_snprintf_format() 103 while (ret == alloc-1 || ret == -1); in gmp_snprintf_format()
|
| /dflybsd-src/contrib/gmp/scanf/ |
| H A D | vsscanf.c | 43 char *alloc; in gmp_vsscanf() local 46 alloc = (char *) (*__gmp_allocate_func) (size); in gmp_vsscanf() 47 memcpy (alloc, s, size); in gmp_vsscanf() 48 s = alloc; in gmp_vsscanf() 50 (*__gmp_free_func) (alloc, size); in gmp_vsscanf()
|
| /dflybsd-src/contrib/gcc-8.0/gcc/ |
| H A D | vec.c | 149 vec_prefix::calculate_allocation_1 (unsigned alloc, unsigned desired) in calculate_allocation_1() argument 152 gcc_assert (alloc < desired); in calculate_allocation_1() 155 if (!alloc) in calculate_allocation_1() 156 alloc = 4; in calculate_allocation_1() 157 else if (alloc < 16) in calculate_allocation_1() 159 alloc = alloc * 2; in calculate_allocation_1() 162 alloc = (alloc * 3 / 2); in calculate_allocation_1() 165 if (alloc < desired) in calculate_allocation_1() 166 alloc = desired; in calculate_allocation_1() 167 return alloc; in calculate_allocation_1()
|
| H A D | gcov-io.c | 61 size_t alloc; member 218 gcov_var.alloc = 0; in gcov_close() 250 size_t new_size = gcov_var.alloc; in gcov_allocate() 257 gcov_var.alloc = new_size; in gcov_allocate() 293 if (gcov_var.offset + words > gcov_var.alloc) in gcov_write_words() 338 unsigned alloc = 0; in gcov_write_string() local 344 alloc = (length + 4) >> 2; in gcov_write_string() 347 buffer = gcov_write_words (1 + alloc); in gcov_write_string() 349 buffer[0] = alloc; in gcov_write_string() 351 if (alloc > 0) in gcov_write_string() [all …]
|
| /dflybsd-src/contrib/gmp/mpn/generic/ |
| H A D | fib2_ui.c | 78 mp_size_t alloc; in mpn_fib2_ui() local 83 alloc = MPN_FIB2_SIZE (n); in mpn_fib2_ui() 84 xp = TMP_ALLOC_LIMBS (alloc); in mpn_fib2_ui() 97 mask, size, alloc); in mpn_fib2_ui() 107 ASSERT (alloc >= 2*size); in mpn_fib2_ui() 149 ASSERT (alloc >= size+1); in mpn_fib2_ui()
|
| /dflybsd-src/contrib/gmp/mpz/ |
| H A D | n_pow_ui.c | 82 #define MPN_SQR(dst, alloc, src, size) \ argument 84 ASSERT (2*(size) <= (alloc)); \ 90 #define MPN_MUL(dst, alloc, src, size, src2, size2) \ argument 93 ASSERT ((size) + (size2) <= (alloc)); \ 98 #define MPN_MUL_2(ptr, size, alloc, mult) \ argument 101 ASSERT ((size)+2 <= (alloc)); \ 108 #define MPN_MUL_1(ptr, size, alloc, limb) \ argument 111 ASSERT ((size)+1 <= (alloc)); \ 117 #define MPN_LSHIFT(ptr, size, alloc, shift) \ argument 120 ASSERT ((size)+1 <= (alloc)); \
|
| /dflybsd-src/contrib/cryptsetup/lib/ |
| H A D | utils.c | 67 struct safe_allocation *alloc; in safe_alloc() local 72 alloc = malloc(size + offsetof(struct safe_allocation, data)); in safe_alloc() 73 if (!alloc) in safe_alloc() 76 alloc->size = size; in safe_alloc() 78 return &alloc->data; in safe_alloc() 83 struct safe_allocation *alloc; in safe_free() local 88 alloc = data - offsetof(struct safe_allocation, data); in safe_free() 90 memset(data, 0, alloc->size); in safe_free() 92 alloc->size = 0x55aa55aa; in safe_free() 93 free(alloc); in safe_free() [all …]
|
| /dflybsd-src/contrib/lvm2/dist/tools/ |
| H A D | pvmove.c | 103 alloc_policy_t alloc) in _get_allocatable_pvs() argument 120 if ((alloc != ALLOC_ANYWHERE) && (pvl->pv->dev == pv_dev(pv))) { in _get_allocatable_pvs() 178 alloc_policy_t alloc, in _set_up_pvmove_lv() argument 250 allocatable_pvs, alloc, MIRROR_BY_SEG)) { in _set_up_pvmove_lv() 356 alloc_policy_t alloc; in _set_up_pvmove() local 422 alloc = arg_uint_value(cmd, alloc_ARG, ALLOC_INHERIT); in _set_up_pvmove() 423 if (alloc == ALLOC_INHERIT) in _set_up_pvmove() 424 alloc = vg->alloc; in _set_up_pvmove() 428 vg, pv, alloc))) in _set_up_pvmove() 435 allocatable_pvs, alloc, in _set_up_pvmove()
|
| /dflybsd-src/contrib/binutils-2.27/bfd/ |
| H A D | hash.c | 375 unsigned long alloc; in bfd_hash_table_init_n() local 377 alloc = size; in bfd_hash_table_init_n() 378 alloc *= sizeof (struct bfd_hash_entry *); in bfd_hash_table_init_n() 379 if (alloc / sizeof (struct bfd_hash_entry *) != size) in bfd_hash_table_init_n() 392 objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n() 399 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n() 524 unsigned long alloc = newsize * sizeof (struct bfd_hash_entry *); in bfd_hash_insert() local 528 if (newsize == 0 || alloc / sizeof (struct bfd_hash_entry *) != newsize) in bfd_hash_insert() 535 objalloc_alloc ((struct objalloc *) table->memory, alloc)); in bfd_hash_insert() 541 memset (newtable, 0, alloc); in bfd_hash_insert()
|
| /dflybsd-src/contrib/gdb-7/bfd/ |
| H A D | hash.c | 376 unsigned long alloc; in bfd_hash_table_init_n() local 378 alloc = size; in bfd_hash_table_init_n() 379 alloc *= sizeof (struct bfd_hash_entry *); in bfd_hash_table_init_n() 380 if (alloc / sizeof (struct bfd_hash_entry *) != size) in bfd_hash_table_init_n() 393 objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n() 399 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n() 524 unsigned long alloc = newsize * sizeof (struct bfd_hash_entry *); in bfd_hash_insert() local 528 if (newsize == 0 || alloc / sizeof (struct bfd_hash_entry *) != newsize) in bfd_hash_insert() 535 objalloc_alloc ((struct objalloc *) table->memory, alloc)); in bfd_hash_insert() 541 memset (newtable, 0, alloc); in bfd_hash_insert()
|
| H A D | bfd.c | 1831 char *res, *alloc; in bfd_demangle() local 1852 alloc = NULL; in bfd_demangle() 1856 alloc = (char *) bfd_malloc (suf - name + 1); in bfd_demangle() 1857 if (alloc == NULL) in bfd_demangle() 1859 memcpy (alloc, name, suf - name); in bfd_demangle() 1860 alloc[suf - name] = '\0'; in bfd_demangle() 1861 name = alloc; in bfd_demangle() 1866 if (alloc != NULL) in bfd_demangle() 1867 free (alloc); in bfd_demangle() 1874 alloc = (char *) bfd_malloc (len); in bfd_demangle() [all …]
|
| /dflybsd-src/contrib/binutils-2.34/bfd/ |
| H A D | hash.c | 375 unsigned long alloc; in bfd_hash_table_init_n() local 377 alloc = size; in bfd_hash_table_init_n() 378 alloc *= sizeof (struct bfd_hash_entry *); in bfd_hash_table_init_n() 379 if (alloc / sizeof (struct bfd_hash_entry *) != size) in bfd_hash_table_init_n() 392 objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n() 399 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n() 525 unsigned long alloc = newsize * sizeof (struct bfd_hash_entry *); in bfd_hash_insert() local 529 if (newsize == 0 || alloc / sizeof (struct bfd_hash_entry *) != newsize) in bfd_hash_insert() 536 objalloc_alloc ((struct objalloc *) table->memory, alloc)); in bfd_hash_insert() 542 memset (newtable, 0, alloc); in bfd_hash_insert()
|
| /dflybsd-src/contrib/binutils-2.27/binutils/ |
| H A D | rdcoff.c | 383 int alloc; in parse_coff_struct_type() local 390 alloc = 10; in parse_coff_struct_type() 391 fields = (debug_field *) xmalloc (alloc * sizeof *fields); in parse_coff_struct_type() 463 if (count + 1 >= alloc) in parse_coff_struct_type() 465 alloc += 10; in parse_coff_struct_type() 467 xrealloc (fields, alloc * sizeof *fields)); in parse_coff_struct_type() 490 int alloc; in parse_coff_enum_type() local 498 alloc = 10; in parse_coff_enum_type() 499 names = (const char **) xmalloc (alloc * sizeof *names); in parse_coff_enum_type() 500 vals = (bfd_signed_vma *) xmalloc (alloc * sizeof *vals); in parse_coff_enum_type() [all …]
|
| H A D | ieee.c | 90 unsigned int alloc; member 116 unsigned int alloc; member 782 if (indx >= info->types.alloc) in ieee_alloc_type() 784 nalloc = info->types.alloc; in ieee_alloc_type() 794 memset (info->types.types + info->types.alloc, 0, in ieee_alloc_type() 795 (nalloc - info->types.alloc) * sizeof *info->types.types); in ieee_alloc_type() 798 for (t = info->types.types + info->types.alloc; t < tend; t++) in ieee_alloc_type() 801 info->types.alloc = nalloc; in ieee_alloc_type() 868 info.vars.alloc = 0; in parse_ieee() 871 info.types.alloc = 0; in parse_ieee() [all …]
|
| /dflybsd-src/contrib/binutils-2.34/binutils/ |
| H A D | rdcoff.c | 383 int alloc; in parse_coff_struct_type() local 390 alloc = 10; in parse_coff_struct_type() 391 fields = (debug_field *) xmalloc (alloc * sizeof *fields); in parse_coff_struct_type() 465 if (count + 1 >= alloc) in parse_coff_struct_type() 467 alloc += 10; in parse_coff_struct_type() 469 xrealloc (fields, alloc * sizeof *fields)); in parse_coff_struct_type() 492 int alloc; in parse_coff_enum_type() local 500 alloc = 10; in parse_coff_enum_type() 501 names = (const char **) xmalloc (alloc * sizeof *names); in parse_coff_enum_type() 502 vals = (bfd_signed_vma *) xmalloc (alloc * sizeof *vals); in parse_coff_enum_type() [all …]
|
| /dflybsd-src/contrib/cvs-1.12/lib/ |
| H A D | regex_internal.c | 874 set->alloc = size; in re_node_set_alloc() 886 set->alloc = 1; in re_node_set_init_1() 891 set->alloc = set->nelem = 0; in re_node_set_init_1() 902 set->alloc = 2; in re_node_set_init_2() 935 dest->alloc = dest->nelem; in re_node_set_init_copy() 936 dest->elems = re_malloc (Idx, dest->alloc); in re_node_set_init_copy() 939 dest->alloc = dest->nelem = 0; in re_node_set_init_copy() 964 if (src1->nelem + src2->nelem + dest->nelem > dest->alloc) in re_node_set_add_intersect() 966 Idx new_alloc = src1->nelem + src2->nelem + dest->alloc; in re_node_set_add_intersect() 969 && (new_alloc < dest->alloc in re_node_set_add_intersect() [all …]
|
| /dflybsd-src/contrib/grep/lib/ |
| H A D | regex_internal.c | 970 set->alloc = size; in re_node_set_alloc() 983 set->alloc = 1; in re_node_set_init_1() 988 set->alloc = set->nelem = 0; in re_node_set_init_1() 999 set->alloc = 2; in re_node_set_init_2() 1032 dest->alloc = dest->nelem; in re_node_set_init_copy() 1033 dest->elems = re_malloc (Idx, dest->alloc); in re_node_set_init_copy() 1036 dest->alloc = dest->nelem = 0; in re_node_set_init_copy() 1061 if (src1->nelem + src2->nelem + dest->nelem > dest->alloc) in re_node_set_add_intersect() 1063 Idx new_alloc = src1->nelem + src2->nelem + dest->alloc; in re_node_set_add_intersect() 1068 dest->alloc = new_alloc; in re_node_set_add_intersect() [all …]
|
| /dflybsd-src/contrib/lvm2/dist/include/ |
| H A D | metadata-exported.h | 218 alloc_policy_t alloc; member 321 alloc_policy_t alloc; member 466 int vg_set_alloc_policy(struct volume_group *vg, alloc_policy_t alloc); 485 alloc_policy_t alloc, 508 alloc_policy_t alloc); 556 alloc_policy_t alloc; /* all */ member 656 struct dm_list *pvs, alloc_policy_t alloc, uint32_t flags); 670 struct dm_list *allocatable_pvs, alloc_policy_t alloc); 676 struct dm_list *allocatable_pvs, alloc_policy_t alloc, 684 struct dm_list *allocatable_pvs, alloc_policy_t alloc); [all …]
|