Lines Matching refs:values
38 int *values = heap->data; in pop_verify_heap() local
42 last = values[0]; in pop_verify_heap()
46 if (last > values[0]) { in pop_verify_heap()
48 values[0]); in pop_verify_heap()
52 if (last < values[0]) { in pop_verify_heap()
54 values[0]); in pop_verify_heap()
58 last = values[0]; in pop_verify_heap()
66 int values[] = { 3, 1, 2, 4, 0x8000000, 0x7FFFFFF, 0, in test_heapify_all() local
69 .data = values, in test_heapify_all()
70 .nr = ARRAY_SIZE(values), in test_heapify_all()
71 .size = ARRAY_SIZE(values), in test_heapify_all()
85 heap.nr = ARRAY_SIZE(values); in test_heapify_all()
87 values[i] = get_random_u32(); in test_heapify_all()
99 int values[ARRAY_SIZE(data)]; in test_heap_push() local
101 .data = values, in test_heap_push()
103 .size = ARRAY_SIZE(values), in test_heap_push()
131 int values[ARRAY_SIZE(data)]; in test_heap_pop_push() local
133 .data = values, in test_heap_pop_push()
135 .size = ARRAY_SIZE(values), in test_heap_pop_push()
170 int values[] = { 3, 1, 2, 4, 0x8000000, 0x7FFFFFF, 0, in test_heap_del() local
174 min_heap_init(&heap, values, ARRAY_SIZE(values)); in test_heap_del()
175 heap.nr = ARRAY_SIZE(values); in test_heap_del()
184 for (i = 0; i < ARRAY_SIZE(values) / 2; i++) in test_heap_del()
190 heap.nr = ARRAY_SIZE(values); in test_heap_del()
192 values[i] = get_random_u32(); in test_heap_del()
195 for (i = 0; i < ARRAY_SIZE(values) / 2; i++) in test_heap_del()