Lines Matching refs:min_heap
32 static __init int pop_verify_heap(bool min_heap, in pop_verify_heap() argument
33 struct min_heap *heap, in pop_verify_heap()
43 if (min_heap) { in pop_verify_heap()
62 static __init int test_heapify_all(bool min_heap) in test_heapify_all() argument
66 struct min_heap heap = { in test_heapify_all()
73 .less = min_heap ? less_than : greater_than, in test_heapify_all()
80 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heapify_all()
89 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heapify_all()
94 static __init int test_heap_push(bool min_heap) in test_heap_push() argument
99 struct min_heap heap = { in test_heap_push()
106 .less = min_heap ? less_than : greater_than, in test_heap_push()
115 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heap_push()
122 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heap_push()
127 static __init int test_heap_pop_push(bool min_heap) in test_heap_pop_push() argument
132 struct min_heap heap = { in test_heap_pop_push()
139 .less = min_heap ? less_than : greater_than, in test_heap_pop_push()
145 temp = min_heap ? 0x80000000 : 0x7FFFFFFF; in test_heap_pop_push()
153 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heap_pop_push()
164 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heap_pop_push()