Lines Matching refs:num
102 return sk->num; in sk_num()
106 if (sk == NULL || sk->num == 0) { in sk_zero()
109 OPENSSL_memset(sk->data, 0, sizeof(void*) * sk->num); in sk_zero()
110 sk->num = 0; in sk_zero()
115 if (!sk || i >= sk->num) { in sk_value()
122 if (!sk || i >= sk->num) { in sk_set()
141 for (size_t i = 0; i < sk->num; i++) { in sk_pop_free()
154 if (sk->num_alloc <= sk->num + 1) { in sk_insert()
180 if (where >= sk->num) { in sk_insert()
181 sk->data[sk->num] = p; in sk_insert()
184 sizeof(void *) * (sk->num - where)); in sk_insert()
188 sk->num++; in sk_insert()
191 return sk->num; in sk_insert()
197 if (!sk || where >= sk->num) { in sk_delete()
203 if (where != sk->num - 1) { in sk_delete()
205 sizeof(void *) * (sk->num - where - 1)); in sk_delete()
208 sk->num--; in sk_delete()
217 for (size_t i = 0; i < sk->num; i++) { in sk_delete_ptr()
233 for (size_t i = 0; i < sk->num; i++) { in sk_find()
255 const void *const *r = bsearch(&p, sk->data, sk->num, sizeof(void *), in sk_find()
276 if (sk->num == 0) { in sk_shift()
282 size_t sk_push(_STACK *sk, void *p) { return (sk_insert(sk, p, sk->num)); } in sk_push()
288 if (sk->num == 0) { in sk_pop()
291 return sk_delete(sk, sk->num - 1); in sk_pop()
313 ret->num = sk->num; in sk_dup()
314 OPENSSL_memcpy(ret->data, sk->data, sizeof(void *) * sk->num); in sk_dup()
334 qsort(sk->data, sk->num, sizeof(void *), comp_func); in sk_sort()
363 for (size_t i = 0; i < ret->num; i++) { in sk_deep_copy()