Home
last modified time | relevance | path

Searched refs:to_alloc (Results 1 – 25 of 139) sorted by relevance

123456

/dports/net/openmpi/openmpi-4.1.1/opal/dss/
H A Ddss_internal_functions.c37 size_t required, to_alloc; in opal_dss_buffer_extend() local
48 to_alloc = ((required + opal_dss_threshold_size - 1) in opal_dss_buffer_extend()
51 to_alloc = buffer->bytes_allocated; in opal_dss_buffer_extend()
52 if(0 == to_alloc) { in opal_dss_buffer_extend()
53 to_alloc = opal_dss_initial_size; in opal_dss_buffer_extend()
55 while(to_alloc < required) { in opal_dss_buffer_extend()
56 to_alloc <<= 1; in opal_dss_buffer_extend()
64 buffer->base_ptr = (char*)realloc(buffer->base_ptr, to_alloc); in opal_dss_buffer_extend()
69 buffer->base_ptr = (char*)malloc(to_alloc); in opal_dss_buffer_extend()
77 buffer->bytes_allocated = to_alloc; in opal_dss_buffer_extend()
/dports/net/openmpi3/openmpi-3.1.6/opal/dss/
H A Ddss_internal_functions.c37 size_t required, to_alloc; in opal_dss_buffer_extend() local
48 to_alloc = ((required + opal_dss_threshold_size - 1) in opal_dss_buffer_extend()
51 to_alloc = buffer->bytes_allocated; in opal_dss_buffer_extend()
52 if(0 == to_alloc) { in opal_dss_buffer_extend()
53 to_alloc = opal_dss_initial_size; in opal_dss_buffer_extend()
55 while(to_alloc < required) { in opal_dss_buffer_extend()
56 to_alloc <<= 1; in opal_dss_buffer_extend()
64 buffer->base_ptr = (char*)realloc(buffer->base_ptr, to_alloc); in opal_dss_buffer_extend()
69 buffer->base_ptr = (char*)malloc(to_alloc); in opal_dss_buffer_extend()
77 buffer->bytes_allocated = to_alloc; in opal_dss_buffer_extend()
/dports/databases/grass7/grass-7.8.6/lib/vector/diglib/
H A Dallocation.c53 int to_alloc; in dig__alloc_space() local
55 to_alloc = *n_elements; in dig__alloc_space()
58 if (n_wanted < to_alloc) in dig__alloc_space()
76 while (n_wanted >= to_alloc) in dig__alloc_space()
77 to_alloc += *n_elements ? *n_elements : chunk_size; in dig__alloc_space()
81 ptr = G_calloc(to_alloc, element_size); in dig__alloc_space()
83 ptr = dig__frealloc((char *)ptr, to_alloc, element_size, *n_elements); in dig__alloc_space()
85 *n_elements = to_alloc; in dig__alloc_space()
/dports/x11-toolkits/gtk40/gtk-4.4.1/gsk/ngl/
H A Dgsknglbufferprivate.h49 gsize to_alloc = count * buffer->element_size; in gsk_ngl_buffer_advance() local
51 if G_UNLIKELY (buffer->buffer_pos + to_alloc > buffer->buffer_len) in gsk_ngl_buffer_advance()
53 while (buffer->buffer_pos + to_alloc > buffer->buffer_len) in gsk_ngl_buffer_advance()
60 buffer->buffer_pos += to_alloc; in gsk_ngl_buffer_advance()
/dports/databases/libcouchbase/libcouchbase-2.10.7/src/rdb/
H A Dlibcalloc.c66 unsigned to_alloc;
72 to_alloc = cap;
74 to_alloc -= lastseg->nalloc - lastseg->start;
76 newseg = alloc->s_alloc(alloc, to_alloc);
/dports/math/osi/Osi-0.108.6/CoinUtils/src/
H A DCoinAlloc.hpp128 …const std::size_t to_alloc = ((n + COINUTILS_MEMPOOL_ALIGNMENT - 1) & CoinAllocRoundMask) + COINUT… in alloc() local
130 if (maxpooled_ > 0 && to_alloc >= (size_t)maxpooled_) { in alloc()
131 p = static_cast< char * >(std::malloc(to_alloc)); in alloc()
135 pool = pool_ + (to_alloc >> CoinAllocPtrShift); in alloc()
/dports/math/coinutils/CoinUtils-2.11.4/CoinUtils/src/
H A DCoinAlloc.hpp128 …const std::size_t to_alloc = ((n + COINUTILS_MEMPOOL_ALIGNMENT - 1) & CoinAllocRoundMask) + COINUT… in alloc() local
130 if (maxpooled_ > 0 && to_alloc >= (size_t)maxpooled_) { in alloc()
131 p = static_cast< char * >(std::malloc(to_alloc)); in alloc()
135 pool = pool_ + (to_alloc >> CoinAllocPtrShift); in alloc()
/dports/math/ogdf/OGDF/include/coin/
H A DCoinAlloc.hpp127 const std::size_t to_alloc = in alloc() local
131 if (maxpooled_ > 0 && to_alloc >= (size_t)maxpooled_) { in alloc()
132 p = static_cast<char*>(std::malloc(to_alloc)); in alloc()
135 pool = pool_ + (to_alloc >> CoinAllocPtrShift); in alloc()
/dports/math/clp/Clp-1.17.3/CoinUtils/src/
H A DCoinAlloc.hpp128 …const std::size_t to_alloc = ((n + COINUTILS_MEMPOOL_ALIGNMENT - 1) & CoinAllocRoundMask) + COINUT… in alloc() local
130 if (maxpooled_ > 0 && to_alloc >= (size_t)maxpooled_) { in alloc()
131 p = static_cast< char * >(std::malloc(to_alloc)); in alloc()
135 pool = pool_ + (to_alloc >> CoinAllocPtrShift); in alloc()
/dports/databases/grass7/grass-7.8.6/display/d.graph/
H A Ddo_graph.c242 int to_alloc; in check_alloc() local
247 to_alloc = coors_allocated; in check_alloc()
248 if (num >= to_alloc) in check_alloc()
249 to_alloc = num + CHUNK; in check_alloc()
251 xarray = G_realloc(xarray, to_alloc * sizeof(double)); in check_alloc()
252 yarray = G_realloc(yarray, to_alloc * sizeof(double)); in check_alloc()
254 coors_allocated = to_alloc; in check_alloc()
/dports/net/openmpi3/openmpi-3.1.6/opal/mca/pmix/pmix2x/pmix/src/mca/bfrops/base/
H A Dbfrop_base_fns.c578 size_t required, to_alloc; in pmix_bfrop_buffer_extend() local
590 to_alloc = ((required + pmix_bfrops_globals.threshold_size - 1) in pmix_bfrop_buffer_extend()
593 to_alloc = buffer->bytes_allocated; in pmix_bfrop_buffer_extend()
594 if (0 == to_alloc) { in pmix_bfrop_buffer_extend()
595 to_alloc = pmix_bfrops_globals.initial_size; in pmix_bfrop_buffer_extend()
597 while (to_alloc < required) { in pmix_bfrop_buffer_extend()
598 to_alloc <<= 1; in pmix_bfrop_buffer_extend()
606 buffer->base_ptr = (char*)realloc(buffer->base_ptr, to_alloc); in pmix_bfrop_buffer_extend()
612 buffer->base_ptr = (char*)malloc(to_alloc); in pmix_bfrop_buffer_extend()
613 memset(buffer->base_ptr, 0, to_alloc); in pmix_bfrop_buffer_extend()
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/src/arrow/
H A Dmemory_pool_test.h60 int64_t to_alloc = std::min<uint64_t>(std::numeric_limits<int64_t>::max(), in TestOOM() local
63 to_alloc -= 63; in TestOOM()
64 ASSERT_RAISES(OutOfMemory, pool->Allocate(to_alloc, &data)); in TestOOM()
/dports/databases/arrow/apache-arrow-6.0.1/cpp/src/arrow/
H A Dmemory_pool_test.h60 int64_t to_alloc = std::min<uint64_t>(std::numeric_limits<int64_t>::max(), in TestOOM() local
63 to_alloc -= 63; in TestOOM()
64 ASSERT_RAISES(OutOfMemory, pool->Allocate(to_alloc, &data)); in TestOOM()
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/cpp/src/arrow/
H A Dmemory_pool_test.h60 int64_t to_alloc = std::min<uint64_t>(std::numeric_limits<int64_t>::max(), in TestOOM() local
63 to_alloc -= 63; in TestOOM()
64 ASSERT_RAISES(OutOfMemory, pool->Allocate(to_alloc, &data)); in TestOOM()
/dports/audio/lsp-plugins-lv2/lsp-plugins-1.1.31/src/core/3d/
H A DAllocator3D.cpp119 size_t to_alloc = (nLeft > n) ? n : nLeft; in do_alloc_n() local
120 nLeft -= to_alloc; in do_alloc_n()
121 nAllocated += to_alloc; in do_alloc_n()
124 while (to_alloc--) in do_alloc_n()
/dports/net/openmpi/openmpi-4.1.1/opal/mca/pmix/pmix3x/pmix/src/mca/bfrops/base/
H A Dbfrop_base_fns.c677 size_t required, to_alloc; in pmix_bfrop_buffer_extend() local
689 to_alloc = ((required + pmix_bfrops_globals.threshold_size - 1) in pmix_bfrop_buffer_extend()
692 to_alloc = buffer->bytes_allocated; in pmix_bfrop_buffer_extend()
693 if (0 == to_alloc) { in pmix_bfrop_buffer_extend()
694 to_alloc = pmix_bfrops_globals.initial_size; in pmix_bfrop_buffer_extend()
696 while (to_alloc < required) { in pmix_bfrop_buffer_extend()
697 to_alloc <<= 1; in pmix_bfrop_buffer_extend()
705 buffer->base_ptr = (char*)realloc(buffer->base_ptr, to_alloc); in pmix_bfrop_buffer_extend()
711 buffer->base_ptr = (char*)malloc(to_alloc); in pmix_bfrop_buffer_extend()
712 memset(buffer->base_ptr, 0, to_alloc); in pmix_bfrop_buffer_extend()
[all …]
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/hotspot/gtest/metaspace/
H A Dtest_chunkManager_stress.cpp143 int to_alloc = 1 + IntRange(MAX2(1, _chunks.size() / 8)).random_value(); in allocate_random_chunks() local
146 while (to_alloc > 0 && slot != -1 && success) { in allocate_random_chunks()
149 to_alloc --; in allocate_random_chunks()
151 return success && to_alloc == 0; in allocate_random_chunks()
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/test/hotspot/gtest/metaspace/
H A Dtest_chunkManager_stress.cpp143 int to_alloc = 1 + IntRange(MAX2(1, _chunks.size() / 8)).random_value(); in allocate_random_chunks() local
146 while (to_alloc > 0 && slot != -1 && success) { in allocate_random_chunks()
149 to_alloc --; in allocate_random_chunks()
151 return success && to_alloc == 0; in allocate_random_chunks()
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/graphics/
H A Dgrbatch.cpp68 int to_alloc = 0; in allocate() local
72 to_alloc += (quad * 6); in allocate()
77 to_alloc += (n_tri * 3); in allocate()
80 allocate_internal(to_alloc); in allocate()
85 int to_alloc = (n_to_render * 3); in add_allocate() local
89 to_alloc += (quad * 6); in add_allocate()
94 to_alloc += (n_tri * 3); in add_allocate()
100 if (to_alloc > n_allocated) { in add_allocate()
107 memset( vert, 0, sizeof(vertex) * to_alloc ); in add_allocate()
108 memset( radius_list, 0, sizeof(float) * to_alloc ); in add_allocate()
[all …]
/dports/net/zebra-server/idzebra-2.0.55/bfile/
H A Dtstbfile1.c119 int to_alloc = 1 + (random() % left); in tst3() local
121 bf_alloc(bf, to_alloc, tblocks); in tst3()
129 if (j == to_alloc) in tst3()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/graphics/
H A Dgrbatch.cpp66 int to_alloc = 0; in allocate() local
70 to_alloc += (quad * 6); in allocate()
75 to_alloc += (n_tri * 3); in allocate()
78 allocate_internal(to_alloc); in allocate()
83 int to_alloc = (n_to_render * 3); in add_allocate() local
87 to_alloc += (quad * 6); in add_allocate()
92 to_alloc += (n_tri * 3); in add_allocate()
98 if (to_alloc > n_allocated) { in add_allocate()
105 memset( vert, 0, sizeof(vertex) * to_alloc ); in add_allocate()
106 memset( radius_list, 0, sizeof(float) * to_alloc ); in add_allocate()
[all …]
/dports/audio/lsp-plugins-lv2/lsp-plugins-1.1.31/src/ui/ctl/
H A DCtlCell.cpp68 size_t to_alloc = ALIGN_SIZE(sizeof(param_t) + ssize, DEFAULT_ALIGN); in set() local
69 param_t *p = reinterpret_cast<param_t *>(::malloc(to_alloc)); in set()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/dax/
H A Dbus.c954 to_alloc = size - dev_size; in dev_dax_resize()
955 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
956 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
983 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
987 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1001 to_alloc -= alloc; in dev_dax_resize()
1002 if (to_alloc) in dev_dax_resize()
1073 size_t to_alloc; in mapping_store() local
1089 to_alloc = range_len(&r); in mapping_store()
1090 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/dax/
H A Dbus.c954 to_alloc = size - dev_size; in dev_dax_resize()
955 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
956 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
983 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
987 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1001 to_alloc -= alloc; in dev_dax_resize()
1002 if (to_alloc) in dev_dax_resize()
1073 size_t to_alloc; in mapping_store() local
1089 to_alloc = range_len(&r); in mapping_store()
1090 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/dax/
H A Dbus.c954 to_alloc = size - dev_size; in dev_dax_resize()
955 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
956 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
983 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
987 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1001 to_alloc -= alloc; in dev_dax_resize()
1002 if (to_alloc) in dev_dax_resize()
1073 size_t to_alloc; in mapping_store() local
1089 to_alloc = range_len(&r); in mapping_store()
1090 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
[all …]

123456