Lines Matching refs:a
93 static void do_test_bin(const struct entry_desc *a, size_t n_a, in do_test_bin() argument
101 entries_insert(&qda, a, n_a); in do_test_bin()
102 qdist_inc(&qda, a[0].x); in do_test_bin()
103 qdist_add(&qda, a[0].x, -1); in do_test_bin()
106 g_assert_cmpfloat(qdist_xmin(&qda), ==, a[0].x); in do_test_bin()
107 g_assert_cmpfloat(qdist_xmax(&qda), ==, a[n_a - 1].x); in do_test_bin()
108 histogram_check(&qda, a, n_a, 0); in do_test_bin()
109 histogram_check(&qda, a, n_a, n_a); in do_test_bin()
226 static const struct entry_desc a[] = { in test_bin_shrink() local
242 return do_test_bin(a, ARRAY_SIZE(a), b, ARRAY_SIZE(b)); in test_bin_shrink()
247 static const struct entry_desc a[] = { in test_bin_expand() local
270 return do_test_bin(a, ARRAY_SIZE(a), b, ARRAY_SIZE(b)); in test_bin_expand()
275 static const struct entry_desc a[] = { in test_bin_precision() local
284 return do_test_bin(a, ARRAY_SIZE(a), b, ARRAY_SIZE(b)); in test_bin_precision()
289 static const struct entry_desc a[] = { in test_bin_simple() local
302 return do_test_bin(a, ARRAY_SIZE(a), b, ARRAY_SIZE(b)); in test_bin_simple()