Lines Matching full:values
30 int *values = heap->data; in pop_verify_heap() local
34 last = values[0]; in pop_verify_heap()
38 if (last > values[0]) { in pop_verify_heap()
40 values[0]); in pop_verify_heap()
44 if (last < values[0]) { in pop_verify_heap()
46 values[0]); in pop_verify_heap()
50 last = values[0]; in pop_verify_heap()
58 int values[] = { 3, 1, 2, 4, 0x8000000, 0x7FFFFFF, 0, in test_heapify_all() local
61 .data = values, in test_heapify_all()
62 .nr = ARRAY_SIZE(values), in test_heapify_all()
63 .size = ARRAY_SIZE(values), in test_heapify_all()
71 /* Test with known set of values. */ in test_heapify_all()
76 /* Test with randomly generated values. */ in test_heapify_all()
77 heap.nr = ARRAY_SIZE(values); in test_heapify_all()
79 values[i] = get_random_u32(); in test_heapify_all()
91 int values[ARRAY_SIZE(data)]; in test_heap_push() local
93 .data = values, in test_heap_push()
95 .size = ARRAY_SIZE(values), in test_heap_push()
103 /* Test with known set of values copied from data. */ in test_heap_push()
109 /* Test with randomly generated values. */ in test_heap_push()
123 int values[ARRAY_SIZE(data)]; in test_heap_pop_push() local
125 .data = values, in test_heap_pop_push()
127 .size = ARRAY_SIZE(values), in test_heap_pop_push()
135 /* Fill values with data to pop and replace. */ in test_heap_pop_push()
140 /* Test with known set of values copied from data. */ in test_heap_pop_push()
150 /* Test with randomly generated values. */ in test_heap_pop_push()
162 int values[] = { 3, 1, 2, 4, 0x8000000, 0x7FFFFFF, 0, in test_heap_del() local
166 min_heap_init_inline(&heap, values, ARRAY_SIZE(values)); in test_heap_del()
167 heap.nr = ARRAY_SIZE(values); in test_heap_del()
174 /* Test with known set of values. */ in test_heap_del()
176 for (i = 0; i < ARRAY_SIZE(values) / 2; i++) in test_heap_del()
181 /* Test with randomly generated values. */ in test_heap_del()
182 heap.nr = ARRAY_SIZE(values); in test_heap_del()
184 values[i] = get_random_u32(); in test_heap_del()
187 for (i = 0; i < ARRAY_SIZE(values) / 2; i++) in test_heap_del()