Home
last modified time | relevance | path

Searched refs:num_alloc (Results 1 – 9 of 9) sorted by relevance

/third_party/openssl/crypto/stack/
Dstack.c30 int num_alloc; member
60 ret->num_alloc = 0; in OPENSSL_sk_dup()
64 if ((ret->data = OPENSSL_malloc(sizeof(*ret->data) * sk->num_alloc)) == NULL) in OPENSSL_sk_dup()
91 ret->num_alloc = 0; in OPENSSL_sk_deep_copy()
95 ret->num_alloc = sk->num > min_nodes ? sk->num : min_nodes; in OPENSSL_sk_deep_copy()
96 ret->data = OPENSSL_zalloc(sizeof(*ret->data) * ret->num_alloc); in OPENSSL_sk_deep_copy()
163 int num_alloc; in sk_reserve() local
170 num_alloc = st->num + n; in sk_reserve()
171 if (num_alloc < min_nodes) in sk_reserve()
172 num_alloc = min_nodes; in sk_reserve()
[all …]
/third_party/ltp/testcases/kernel/mem/mtest07/
Dmallocstress.c74 int num_alloc; in allocate_free() local
82 for (num_alloc = 0; num_alloc < MAXPTRS; num_alloc++) { in allocate_free()
86 ptrs[num_alloc] = malloc(size); in allocate_free()
88 if (!ptrs[num_alloc]) in allocate_free()
90 ptrs[num_alloc][0] = num_alloc; in allocate_free()
118 for (i = 0; i < num_alloc; i++) { in allocate_free()
/third_party/mesa3d/src/util/
Du_idalloc.c105 unsigned num_alloc = DIV_ROUND_UP(num, 32); in util_idalloc_alloc_range() local
112 i < num_elements && i - base < num_alloc && !buf->data[i]; i++); in util_idalloc_alloc_range()
114 if (i - base == num_alloc) in util_idalloc_alloc_range()
125 util_idalloc_resize(buf, num_elements * 2 + num_alloc); in util_idalloc_alloc_range()
129 for (unsigned i = base; i < base + num_alloc - (num % 32 != 0); i++) in util_idalloc_alloc_range()
132 buf->data[base + num_alloc - 1] |= BITFIELD_MASK(num % 32); in util_idalloc_alloc_range()
/third_party/boost/libs/interprocess/test/
Dnode_pool_test.hpp34 const typename NodePool::size_type num_alloc = 1 + 3*pool.get_real_num_node(); in allocate_then_deallocate() local
44 for(std::size_t i = 0; i < num_alloc; ++i){ in allocate_then_deallocate()
54 for(std::size_t i = 0; i < num_alloc; ++i){ in allocate_then_deallocate()
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/library/
Dssl_stack.c48 stack->num_alloc = MIN_NODES; in OPENSSL_sk_new()
/third_party/boost/boost/container/
Dvector.hpp486 ++this->num_alloc; in priv_first_allocation()
828 this->num_alloc += n != 0; in vector()
845 this->num_alloc += n != 0; in vector()
864 this->num_alloc += n != 0; in vector()
883 this->num_alloc += n != 0; in vector()
900 this->num_alloc += n != 0; in vector()
917 this->num_alloc += n != 0; in vector()
975 this->num_alloc += x.size() != 0; in vector()
1002 this->num_alloc += il.size() != 0; in vector()
1041 this->num_alloc += x.size() != 0; in vector()
[all …]
/third_party/boost/libs/container/bench/
Dbench_alloc_expand_fwd.cpp54 { return v.num_alloc; } in get_num_alloc()
Dbench_alloc_expand_bwd.cpp120 numalloc += v.num_alloc; in vector_test_template()
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/include/internal/
Dssl_types.h106 int num_alloc; member