| /dflybsd-src/contrib/gmp/mpf/ |
| H A D | inp_str.c | 30 size_t alloc_size, str_size; in mpf_inp_str() local 38 alloc_size = 100; in mpf_inp_str() 39 str = (char *) (*__gmp_allocate_func) (alloc_size); in mpf_inp_str() 53 if (str_size >= alloc_size) in mpf_inp_str() 55 size_t old_alloc_size = alloc_size; in mpf_inp_str() 56 alloc_size = alloc_size * 3 / 2; in mpf_inp_str() 57 str = (char *) (*__gmp_reallocate_func) (str, old_alloc_size, alloc_size); in mpf_inp_str() 67 if (str_size >= alloc_size) in mpf_inp_str() 69 size_t old_alloc_size = alloc_size; in mpf_inp_str() 70 alloc_size = alloc_size * 3 / 2; in mpf_inp_str() [all …]
|
| H A D | get_str.c | 123 size_t alloc_size = 0; in mpf_get_str() local 157 alloc_size = n_digits + 2; in mpf_get_str() 311 if (alloc_size != 0) in mpf_get_str() 313 __GMP_REALLOCATE_FUNC_MAYBE_TYPE (dbuf, alloc_size, n_digits + 1, char); in mpf_get_str()
|
| /dflybsd-src/contrib/mpfr/src/ |
| H A D | inp_str.c | 35 size_t alloc_size, str_size; in mpfr_inp_str() local 43 alloc_size = 100; in mpfr_inp_str() 44 str = (unsigned char *) (*__gmp_allocate_func) (alloc_size); in mpfr_inp_str() 60 if (str_size >= alloc_size) in mpfr_inp_str() 62 size_t old_alloc_size = alloc_size; in mpfr_inp_str() 63 alloc_size = alloc_size * 3 / 2; in mpfr_inp_str() 65 (*__gmp_reallocate_func) (str, old_alloc_size, alloc_size); in mpfr_inp_str() 83 (*__gmp_free_func) (str, alloc_size); in mpfr_inp_str()
|
| /dflybsd-src/sys/dev/drm/ |
| H A D | linux_scatterlist.c | 69 unsigned int sg_size, alloc_size = left; in __sg_alloc_table() local 71 if (alloc_size > max_ents) { in __sg_alloc_table() 72 alloc_size = max_ents; in __sg_alloc_table() 73 sg_size = alloc_size - 1; in __sg_alloc_table() 75 sg_size = alloc_size; in __sg_alloc_table() 79 sg = kmalloc(alloc_size * sizeof(struct scatterlist), M_DRM, gfp_mask); in __sg_alloc_table() 93 sg_init_table(sg, alloc_size); in __sg_alloc_table() 127 unsigned int alloc_size = table->orig_nents; in __sg_free_table() local 136 if (alloc_size > max_ents) { in __sg_free_table() 138 alloc_size = max_ents; in __sg_free_table() [all …]
|
| /dflybsd-src/contrib/gmp/mpz/ |
| H A D | inp_str.c | 61 size_t alloc_size, str_size; in mpz_inp_str_nowhite() local 123 alloc_size = 100; in mpz_inp_str_nowhite() 124 str = (char *) (*__gmp_allocate_func) (alloc_size); in mpz_inp_str_nowhite() 133 if (str_size >= alloc_size) in mpz_inp_str_nowhite() 135 size_t old_alloc_size = alloc_size; in mpz_inp_str_nowhite() 136 alloc_size = alloc_size * 3 / 2; in mpz_inp_str_nowhite() 137 str = (char *) (*__gmp_reallocate_func) (str, old_alloc_size, alloc_size); in mpz_inp_str_nowhite() 162 (*__gmp_free_func) (str, alloc_size); in mpz_inp_str_nowhite()
|
| H A D | get_str.c | 38 size_t alloc_size = 0; in mpz_get_str() local 65 MPN_SIZEINBASE (alloc_size, PTR(x), ABS(x_size), base); in mpz_get_str() 66 alloc_size += 1 + (x_size<0); in mpz_get_str() 67 res_str = (char *) (*__gmp_allocate_func) (alloc_size); in mpz_get_str() 87 ASSERT (alloc_size == 0 || str_size <= alloc_size - (SIZ(x) < 0)); in mpz_get_str() 107 if (alloc_size != 0) in mpz_get_str() 111 __GMP_REALLOCATE_FUNC_MAYBE_TYPE (return_str, alloc_size, actual_size, in mpz_get_str()
|
| /dflybsd-src/contrib/gcc-8.0/libiberty/ |
| H A D | xmemdup.c | 35 xmemdup (const PTR input, size_t copy_size, size_t alloc_size) in xmemdup() argument 37 PTR output = xmalloc (alloc_size); in xmemdup() 38 if (alloc_size > copy_size) in xmemdup() 39 memset ((char *) output + copy_size, 0, alloc_size - copy_size); in xmemdup()
|
| /dflybsd-src/contrib/binutils-2.34/libiberty/ |
| H A D | xmemdup.c | 35 xmemdup (const PTR input, size_t copy_size, size_t alloc_size) in xmemdup() argument 37 PTR output = xmalloc (alloc_size); in xmemdup() 38 if (alloc_size > copy_size) in xmemdup() 39 memset ((char *) output + copy_size, 0, alloc_size - copy_size); in xmemdup()
|
| /dflybsd-src/contrib/binutils-2.27/libiberty/ |
| H A D | xmemdup.c | 35 xmemdup (const PTR input, size_t copy_size, size_t alloc_size) in xmemdup() argument 37 PTR output = xmalloc (alloc_size); in xmemdup() 38 if (alloc_size > copy_size) in xmemdup() 39 memset ((char *) output + copy_size, 0, alloc_size - copy_size); in xmemdup()
|
| /dflybsd-src/sys/bus/u4b/ |
| H A D | usb_mbuf.c | 62 usb_size_t alloc_size; in usb_alloc_mbufs() local 69 alloc_size = (block_size + sizeof(struct usb_mbuf)) * nblocks; in usb_alloc_mbufs() 71 free_ptr = kmalloc(alloc_size, type, M_WAITOK | M_ZERO); in usb_alloc_mbufs()
|
| /dflybsd-src/contrib/gcc-4.7/libiberty/ |
| H A D | xmemdup.c | 35 xmemdup (const PTR input, size_t copy_size, size_t alloc_size) in xmemdup() argument 37 PTR output = xcalloc (1, alloc_size); in xmemdup()
|
| /dflybsd-src/contrib/binutils-2.34/include/ |
| H A D | ansidecl.h | 298 # define ATTRIBUTE_RESULT_SIZE_1 __attribute__ ((alloc_size (1))) 306 # define ATTRIBUTE_RESULT_SIZE_2 __attribute__ ((alloc_size (2))) 314 # define ATTRIBUTE_RESULT_SIZE_1_2 __attribute__ ((alloc_size (1, 2)))
|
| /dflybsd-src/contrib/gdb-7/gdb/ |
| H A D | objfiles.c | 1284 int alloc_size, map_size, i; in update_section_map() local 1293 alloc_size = 0; in update_section_map() 1297 alloc_size += 1; in update_section_map() 1300 if (alloc_size == 0) in update_section_map() 1307 map = xmalloc (alloc_size * sizeof (*map)); in update_section_map() 1315 qsort (map, alloc_size, sizeof (*map), qsort_cmp); in update_section_map() 1316 map_size = filter_debuginfo_sections(map, alloc_size); in update_section_map() 1319 if (map_size < alloc_size) in update_section_map() 1323 gdb_assert (alloc_size == map_size); in update_section_map()
|
| /dflybsd-src/sys/dev/drm/ttm/ |
| H A D | ttm_page_alloc.c | 94 unsigned alloc_size; member 188 m->options.alloc_size = val; in ttm_pool_store() 206 val = m->options.alloc_size; in ttm_pool_show() 606 unsigned alloc_size = _manager->options.alloc_size; in ttm_page_pool_fill_locked() local 616 cstate, alloc_size, 0); in ttm_page_pool_fill_locked() 622 pool->npages += alloc_size; in ttm_page_pool_fill_locked() 836 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; in ttm_page_alloc_init()
|
| H A D | ttm_page_alloc_dma.c | 136 unsigned alloc_size; member 230 m->options.alloc_size = val; in ttm_pool_store() 248 val = m->options.alloc_size; in ttm_pool_show() 1180 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; in ttm_dma_page_alloc_init()
|
| /dflybsd-src/contrib/gcc-4.7/gcc/ |
| H A D | ggc-zone.c | 2287 size_t alloc_size; member 2343 size_t alloc_size, total_size; in ggc_pch_total_size() local 2354 alloc_size = CEIL (d->d.total, BYTES_PER_ALLOC_BIT * 8); in ggc_pch_total_size() 2355 alloc_size = ROUND_UP (alloc_size, MAX_ALIGNMENT); in ggc_pch_total_size() 2356 d->alloc_size = alloc_size; in ggc_pch_total_size() 2358 return d->d.total + alloc_size; in ggc_pch_total_size() 2377 d->alloc_bits = XCNEWVAR (alloc_type, d->alloc_size); in ggc_pch_this_base() 2441 if (fwrite (d->alloc_bits, d->alloc_size, 1, f) != 1) in ggc_pch_finish() 2459 size_t alloc_size; in ggc_pch_read() local 2467 alloc_size = CEIL (d.total, BYTES_PER_ALLOC_BIT * 8); in ggc_pch_read() [all …]
|
| H A D | ggc-page.c | 310 size_t alloc_size; member 820 size_t alloc_size, head_slop, tail_slop; in alloc_page() local 824 alloc_size = GGC_QUIRE_SIZE * G.pagesize; in alloc_page() 826 alloc_size = entry_size + G.pagesize - 1; in alloc_page() 827 allocation = XNEWVEC (char, alloc_size); in alloc_page() 832 tail_slop = ((size_t) allocation + alloc_size) & (G.pagesize - 1); in alloc_page() 834 tail_slop = alloc_size - entry_size - head_slop; in alloc_page() 835 enda = allocation + alloc_size - tail_slop; in alloc_page() 859 group->alloc_size = alloc_size; in alloc_page() 862 G.bytes_mapped += alloc_size; in alloc_page() [all …]
|
| H A D | tree-object-size.c | 389 tree alloc_size; in alloc_object_size() local 398 alloc_size = lookup_attribute ("alloc_size", TYPE_ATTRIBUTES (TREE_TYPE(callee))); in alloc_object_size() 399 if (alloc_size && TREE_VALUE (alloc_size)) in alloc_object_size() 401 tree p = TREE_VALUE (alloc_size); in alloc_object_size()
|
| /dflybsd-src/sys/dev/drm/amd/amdgpu/ |
| H A D | amdgpu_ib.c | 129 uint32_t status = 0, alloc_size; in amdgpu_ib_schedule() local 159 alloc_size = ring->funcs->emit_frame_size + num_ibs * in amdgpu_ib_schedule() 162 r = amdgpu_ring_alloc(ring, alloc_size); in amdgpu_ib_schedule()
|
| /dflybsd-src/contrib/gcc-8.0/gcc/ |
| H A D | ggc-page.c | 301 size_t alloc_size; member 856 size_t alloc_size, head_slop, tail_slop; in alloc_page() local 860 alloc_size = GGC_QUIRE_SIZE * G.pagesize; in alloc_page() 862 alloc_size = entry_size + G.pagesize - 1; in alloc_page() 863 allocation = XNEWVEC (char, alloc_size); in alloc_page() 868 tail_slop = ((size_t) allocation + alloc_size) & (G.pagesize - 1); in alloc_page() 870 tail_slop = alloc_size - entry_size - head_slop; in alloc_page() 871 enda = allocation + alloc_size - tail_slop; in alloc_page() 895 group->alloc_size = alloc_size; in alloc_page() 898 G.bytes_mapped += alloc_size; in alloc_page() [all …]
|
| H A D | tree-object-size.c | 412 tree alloc_size; in alloc_object_size() local 421 alloc_size = lookup_attribute ("alloc_size", in alloc_object_size() 423 if (alloc_size && TREE_VALUE (alloc_size)) in alloc_object_size() 425 tree p = TREE_VALUE (alloc_size); in alloc_object_size()
|
| /dflybsd-src/contrib/gcc-4.7/libcpp/ |
| H A D | line-map.c | 95 unsigned alloc_size; in new_linemap() local 110 alloc_size = in new_linemap() 116 alloc_size = round_alloc_size (alloc_size); in new_linemap() 123 alloc_size / (sizeof (struct line_map)); in new_linemap()
|
| /dflybsd-src/contrib/gcc-8.0/libcpp/ |
| H A D | line-map.c | 392 size_t alloc_size; in new_linemap() local 413 alloc_size = in new_linemap() 419 alloc_size = round_alloc_size (alloc_size); in new_linemap() 426 alloc_size / map_size; in new_linemap()
|
| /dflybsd-src/sys/net/dummynet/ |
| H A D | ip_dummynet.c | 1390 int i, alloc_size; in alloc_hash() local 1409 alloc_size = x->rq_size + 1; in alloc_hash() 1411 x->rq = kmalloc(alloc_size * sizeof(struct dn_flowqueue_head), in alloc_hash() 1415 for (i = 0; i < alloc_size; ++i) in alloc_hash()
|
| /dflybsd-src/sys/net/dummynet3/ |
| H A D | ip_dummynet3.c | 1395 int i, alloc_size; in alloc_hash() local 1414 alloc_size = x->rq_size + 1; in alloc_hash() 1416 x->rq = kmalloc(alloc_size * sizeof(struct dn_flowqueue_head), in alloc_hash() 1420 for (i = 0; i < alloc_size; ++i) in alloc_hash()
|