Lines Matching refs:n
58 static void swap_words_32(void *a, void *b, size_t n) in swap_words_32() argument
61 u32 t = *(u32 *)(a + (n -= 4)); in swap_words_32()
62 *(u32 *)(a + n) = *(u32 *)(b + n); in swap_words_32()
63 *(u32 *)(b + n) = t; in swap_words_32()
64 } while (n); in swap_words_32()
83 static void swap_words_64(void *a, void *b, size_t n) in swap_words_64() argument
87 u64 t = *(u64 *)(a + (n -= 8)); in swap_words_64()
88 *(u64 *)(a + n) = *(u64 *)(b + n); in swap_words_64()
89 *(u64 *)(b + n) = t; in swap_words_64()
92 u32 t = *(u32 *)(a + (n -= 4)); in swap_words_64()
93 *(u32 *)(a + n) = *(u32 *)(b + n); in swap_words_64()
94 *(u32 *)(b + n) = t; in swap_words_64()
96 t = *(u32 *)(a + (n -= 4)); in swap_words_64()
97 *(u32 *)(a + n) = *(u32 *)(b + n); in swap_words_64()
98 *(u32 *)(b + n) = t; in swap_words_64()
100 } while (n); in swap_words_64()
111 static void swap_bytes(void *a, void *b, size_t n) in swap_bytes() argument
114 char t = ((char *)a)[--n]; in swap_bytes()
115 ((char *)a)[n] = ((char *)b)[n]; in swap_bytes()
116 ((char *)b)[n] = t; in swap_bytes()
117 } while (n); in swap_bytes()
205 size_t n = num * size, a = (num/2) * size; in sort_r() local
232 else if (n -= size) /* Sorting: Extract root to --n */ in sort_r()
233 do_swap(base, base + n, size, swap_func); in sort_r()
249 for (b = a; c = 2*b + size, (d = c + size) < n;) in sort_r()
251 if (d == n) /* Special case last leaf with no sibling */ in sort_r()