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

Function rte_jhash_2hashes

dpdk/lib/hash/rte_jhash.h:235–239  ·  view source on GitHub ↗

* Same as rte_jhash, but takes two seeds and return two uint32_ts. * pc and pb must be non-null, and *pc and *pb must both be initialized * with seeds. If you pass in (*pb)=0, the output (*pc) will be * the same as the return value from rte_jhash. * * @param key * Key to calculate hash of. * @param length * Length of key in bytes. * @param pc * IN: seed OUT: primary hash value. *

Source from the content-addressed store, hash-verified

233 * IN: second seed OUT: secondary hash value.
234 */
235static inline void
236rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc, uint32_t *pb)
237{
238 __rte_jhash_2hashes(key, length, pc, pb, 1);
239}
240
241/**
242 * Same as rte_jhash_32b, but takes two seeds and return two uint32_ts.

Callers 1

rte_jhashFunction · 0.70

Calls 1

__rte_jhash_2hashesFunction · 0.70

Tested by

no test coverage detected