Lines Matching +full:4 +full:- +full:temp
1 // SPDX-License-Identifier: GPL-2.0-only
26 int temp = *(int *)lhs; in swap_ints() local
29 *(int *)rhs = temp; in swap_ints()
36 int *values = heap->data; in pop_verify_heap()
42 while (heap->nr > 0) { in pop_verify_heap()
64 int values[] = { 3, 1, 2, 4, 0x8000000, 0x7FFFFFF, 0, in test_heapify_all()
65 -3, -1, -2, -4, 0x8000000, 0x7FFFFFF }; in test_heapify_all()
96 const int data[] = { 3, 1, 2, 4, 0x80000000, 0x7FFFFFFF, 0, in test_heap_push()
97 -3, -1, -2, -4, 0x80000000, 0x7FFFFFFF }; in test_heap_push()
109 int i, temp, err; in test_heap_push() local
119 temp = get_random_u32(); in test_heap_push()
120 min_heap_push(&heap, &temp, &funcs); in test_heap_push()
129 const int data[] = { 3, 1, 2, 4, 0x80000000, 0x7FFFFFFF, 0, in test_heap_pop_push()
130 -3, -1, -2, -4, 0x80000000, 0x7FFFFFFF }; in test_heap_pop_push()
142 int i, temp, err; in test_heap_pop_push() local
145 temp = min_heap ? 0x80000000 : 0x7FFFFFFF; in test_heap_pop_push()
147 min_heap_push(&heap, &temp, &funcs); in test_heap_pop_push()
157 min_heap_push(&heap, &temp, &funcs); in test_heap_pop_push()
161 temp = get_random_u32(); in test_heap_pop_push()
162 min_heap_pop_push(&heap, &temp, &funcs); in test_heap_pop_push()
181 return -EINVAL; in test_min_heap_init()