MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_jhash_32b

Function rte_jhash_32b

dpdk/lib/hash/rte_jhash.h:302–310  ·  view source on GitHub ↗

* A special optimized version that handles 1 or more of uint32_ts. * The length parameter here is the number of uint32_ts in the key. * * @param k * Key to calculate hash of. * @param length * Length of key in units of 4 bytes. * @param initval * Initialising value of hash. * @return * Calculated hash value. */

Source from the content-addressed store, hash-verified

300 * Calculated hash value.
301 */
302static inline uint32_t
303rte_jhash_32b(const uint32_t *k, uint32_t length, uint32_t initval)
304{
305 uint32_t initval2 = 0;
306
307 rte_jhash_32b_2hashes(k, length, &initval, &initval2);
308
309 return initval;
310}
311
312static inline uint32_t
313__rte_jhash_3words(uint32_t a, uint32_t b, uint32_t c, uint32_t initval)

Callers 3

tap_flow_set_handleFunction · 0.50
verify_jhash_32bitsFunction · 0.50
test_jhash_32bFunction · 0.50

Calls 1

rte_jhash_32b_2hashesFunction · 0.70

Tested by 2

verify_jhash_32bitsFunction · 0.40
test_jhash_32bFunction · 0.40