src/dpdk/lib/librte_hash/rte_jhash.h
static inline uint32_t
rte_jhash(const void *key, uint32_t length, uint32_t initval)
{
	uint32_t initval2 = 0;

	rte_jhash_2hashes(key, length, &initval, &initval2);

	return initval;
}
/**
 * The most generic version, hashes an arbitrary sequence
 * of bytes.  No alignment or length assumptions are made about
 * the input key.  For keys not aligned to four byte boundaries
 * or a multiple of four bytes in length, the memory region
 * just after may be read (but not used in the computation).
 * This may cross a page boundary.
 *
 * @param key
 *   Key to calculate hash of.
 * @param length
 *   Length of key in bytes.
 * @param initval
 *   Initialising value of hash.
 * @return
 *   Calculated hash value.
 */
The most generic version, hashes an arbitrary sequence
of bytes.  No alignment or length assumptions are made about
the input key.  For keys not aligned to four byte boundaries
or a multiple of four bytes in length, the memory region
just after may be read (but not used in the computation).
This may cross a page boundary.

@param key
Key to calculate hash of.
@param length
Length of key in bytes.
@param initval
Initialising value of hash.
@return
Calculated hash value.
The most generic version hashes an arbitrary sequence of bytes . No alignment or length assumptions are made about the input key . For keys not aligned to four byte boundaries or a multiple of four bytes in length the memory region just after may be read ( but not used in the computation ) . This may cross a page boundary . @param key Key to calculate hash of . @param length Length of key in bytes . @param initval Initialising value of hash . @return Calculated hash value .
static inline uint32_t
rte_jhash(const void *key, uint32_t length, uint32_t initval)
{
	uint32_t initval2 = 0;
	rte_jhash_2hashes(key, length, &initval, &initval2);
	return initval;
}
static inline uint32_t rte_jhash ( const void * key , uint32_t length , uint32_t initval ) { uint32_t initval2 = 0 ; rte_jhash_2hashes ( key , length , & initval , & initval2 ) ; return initval ; }
The most generic version, hashes an arbitrary sequence
 of bytes.
The most generic version hashes an arbitrary sequence of bytes .