Lines Matching refs:num
103 return sk->num; in sk_num()
107 if (sk == NULL || sk->num == 0) { in sk_zero()
110 OPENSSL_memset(sk->data, 0, sizeof(void*) * sk->num); in sk_zero()
111 sk->num = 0; in sk_zero()
116 if (!sk || i >= sk->num) { in sk_value()
123 if (!sk || i >= sk->num) { in sk_set()
143 for (size_t i = 0; i < sk->num; i++) { in sk_pop_free_ex()
167 if (sk->num_alloc <= sk->num + 1) { in sk_insert()
193 if (where >= sk->num) { in sk_insert()
194 sk->data[sk->num] = p; in sk_insert()
197 sizeof(void *) * (sk->num - where)); in sk_insert()
201 sk->num++; in sk_insert()
204 return sk->num; in sk_insert()
210 if (!sk || where >= sk->num) { in sk_delete()
216 if (where != sk->num - 1) { in sk_delete()
218 sizeof(void *) * (sk->num - where - 1)); in sk_delete()
221 sk->num--; in sk_delete()
230 for (size_t i = 0; i < sk->num; i++) { in sk_delete_ptr()
248 for (size_t i = 0; i < sk->num; i++) { in sk_find()
264 for (size_t i = 0; i < sk->num; i++) { in sk_find()
280 size_t lo = 0, hi = sk->num; in sk_find()
315 if (sk->num == 0) { in sk_shift()
321 size_t sk_push(_STACK *sk, void *p) { return (sk_insert(sk, p, sk->num)); } in sk_push()
327 if (sk->num == 0) { in sk_pop()
330 return sk_delete(sk, sk->num - 1); in sk_pop()
352 ret->num = sk->num; in sk_dup()
353 OPENSSL_memcpy(ret->data, sk->data, sizeof(void *) * sk->num); in sk_dup()
378 if (sk->num >= 2) { in sk_sort()
381 qsort(sk->data, sk->num, sizeof(void *), comp_func); in sk_sort()
414 for (size_t i = 0; i < ret->num; i++) { in sk_deep_copy()