Lines Matching +full:1 +full:k
39 #define rot(x, k) (((x) << (k)) | ((x) >> (32-(k)))) argument
65 #define BIT_SHIFT(x, y, k) (((x) >> (k)) | ((uint64_t)(y) << (32-(k)))) argument
67 #define BIT_SHIFT(x, y, k) (((uint64_t)(x) << (k)) | ((y) >> (32-(k))))
89 const uint32_t *k = (const uint32_t *)key; in __rte_jhash_2hashes() local
92 const uint32_t *k = (uint32_t *)((uintptr_t)key & (uintptr_t)~3); in __rte_jhash_2hashes() local
97 a += k[0]; in __rte_jhash_2hashes()
98 b += k[1]; in __rte_jhash_2hashes()
99 c += k[2]; in __rte_jhash_2hashes()
103 k += 3; in __rte_jhash_2hashes()
109 c += k[2]; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
111 c += k[2] & LOWER24b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
113 c += k[2] & LOWER16b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
115 c += k[2] & LOWER8b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
117 b += k[1]; a += k[0]; break; in __rte_jhash_2hashes()
119 b += k[1] & LOWER24b_MASK; a += k[0]; break; in __rte_jhash_2hashes()
121 b += k[1] & LOWER16b_MASK; a += k[0]; break; in __rte_jhash_2hashes()
123 b += k[1] & LOWER8b_MASK; a += k[0]; break; in __rte_jhash_2hashes()
125 a += k[0]; break; in __rte_jhash_2hashes()
127 a += k[0] & LOWER24b_MASK; break; in __rte_jhash_2hashes()
129 a += k[0] & LOWER16b_MASK; break; in __rte_jhash_2hashes()
130 case 1: in __rte_jhash_2hashes()
131 a += k[0] & LOWER8b_MASK; break; in __rte_jhash_2hashes()
141 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
142 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes()
143 c += BIT_SHIFT(k[2], k[3], s); in __rte_jhash_2hashes()
146 k += 3; in __rte_jhash_2hashes()
153 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
154 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes()
155 c += BIT_SHIFT(k[2], k[3], s); in __rte_jhash_2hashes()
158 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
159 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes()
160 c += BIT_SHIFT(k[2], k[3], s) & LOWER24b_MASK; in __rte_jhash_2hashes()
163 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
164 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes()
165 c += BIT_SHIFT(k[2], k[3], s) & LOWER16b_MASK; in __rte_jhash_2hashes()
168 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
169 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes()
170 c += BIT_SHIFT(k[2], k[3], s) & LOWER8b_MASK; in __rte_jhash_2hashes()
173 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
174 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes()
177 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
178 b += BIT_SHIFT(k[1], k[2], s) & LOWER24b_MASK; in __rte_jhash_2hashes()
181 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
182 b += BIT_SHIFT(k[1], k[2], s) & LOWER16b_MASK; in __rte_jhash_2hashes()
185 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
186 b += BIT_SHIFT(k[1], k[2], s) & LOWER8b_MASK; in __rte_jhash_2hashes()
189 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes()
192 a += BIT_SHIFT(k[0], k[1], s) & LOWER24b_MASK; in __rte_jhash_2hashes()
195 a += BIT_SHIFT(k[0], k[1], s) & LOWER16b_MASK; in __rte_jhash_2hashes()
197 case 1: in __rte_jhash_2hashes()
198 a += BIT_SHIFT(k[0], k[1], s) & LOWER8b_MASK; in __rte_jhash_2hashes()
232 __rte_jhash_2hashes(key, length, pc, pb, 1); in rte_jhash_2hashes()
241 * @param k
251 rte_jhash_32b_2hashes(const uint32_t *k, uint32_t length, uint32_t *pc, uint32_t *pb) in rte_jhash_32b_2hashes() argument
253 __rte_jhash_2hashes((const void *) k, (length << 2), pc, pb, 0); in rte_jhash_32b_2hashes()
284 * A special optimized version that handles 1 or more of uint32_ts.
287 * @param k
297 rte_jhash_32b(const uint32_t *k, uint32_t length, uint32_t initval) in rte_jhash_32b() argument
301 rte_jhash_32b_2hashes(k, length, &initval, &initval2); in rte_jhash_32b()
360 * 1 word.