Lines Matching refs:min_heap
34 static __init int pop_verify_heap(bool min_heap, in pop_verify_heap() argument
45 if (min_heap) { in pop_verify_heap()
64 static __init int test_heapify_all(bool min_heap) in test_heapify_all() argument
74 .less = min_heap ? less_than : greater_than, in test_heapify_all()
81 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heapify_all()
90 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heapify_all()
95 static __init int test_heap_push(bool min_heap) in test_heap_push() argument
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
138 .less = min_heap ? less_than : greater_than, in test_heap_pop_push()
144 temp = min_heap ? 0x80000000 : 0x7FFFFFFF; in test_heap_pop_push()
152 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heap_pop_push()
163 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heap_pop_push()
168 static __init int test_heap_del(bool min_heap) in test_heap_del() argument
177 .less = min_heap ? less_than : greater_than, in test_heap_del()
186 err = pop_verify_heap(min_heap, &heap, &funcs); in test_heap_del()
197 err += pop_verify_heap(min_heap, &heap, &funcs); in test_heap_del()