Lines Matching refs:count

51 static int test_size_t_priority_queue_int(int reserve, int order, int count,  in test_size_t_priority_queue_int()  argument
61 count, orders[order], reserve ? "reserve" : "grow", in test_size_t_priority_queue_int()
65 if (!TEST_size_t_le(count, MAX_SAMPLES)) in test_size_t_priority_queue_int()
72 for (i = 0; i < count; i++) in test_size_t_priority_queue_int()
73 values[i] = random ? test_random() : (size_t)(count - i); in test_size_t_priority_queue_int()
74 memcpy(sorted, values, sizeof(*sorted) * count); in test_size_t_priority_queue_int()
75 qsort(sorted, count, sizeof(*sorted), &qsort_size_t_compare); in test_size_t_priority_queue_int()
78 memcpy(values, sorted, sizeof(*values) * count); in test_size_t_priority_queue_int()
80 qsort(values, count, sizeof(*values), &qsort_size_t_compare_rev); in test_size_t_priority_queue_int()
86 if (reserve && !TEST_true(ossl_pqueue_size_t_reserve(pq, count))) in test_size_t_priority_queue_int()
89 for (i = 0; i < count; i++) in test_size_t_priority_queue_int()
94 || !TEST_size_t_eq(ossl_pqueue_size_t_num(pq), count)) in test_size_t_priority_queue_int()
99 i = test_random() % count; in test_size_t_priority_queue_int()
107 memcpy(sorted, values, sizeof(*sorted) * count); in test_size_t_priority_queue_int()
108 qsort(sorted, count, sizeof(*sorted), &qsort_size_t_compare); in test_size_t_priority_queue_int()
135 int reserve, order, count, remove, random, popfree; in test_size_t_priority_queue() local
137 count = n % OSSL_NELEM(test_size_t_priority_counts); in test_size_t_priority_queue()
149 count = test_size_t_priority_counts[count]; in test_size_t_priority_queue()
150 return test_size_t_priority_queue_int(reserve, order, count, remove, in test_size_t_priority_queue()