hash: use x86 common flag for jhash
PATCH 1/1 hash: use x86 common flag for jhash
jhash has been forgotten when factorising the x86 arch check.
Fixes dbf17d44f375 ("hash: use common x86 flag")
Signed-off-by David Marchand <[email protected]>
--- lib/librte_hash/rte_jhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_hash/rte_jhash.h +1 -1
@@ -91,7 +91,7 @@ __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc,* Check key alignment. For x86 architecture, first case is always optimal * If check_align is not set, first case will be used */ -#if defined(RTE_ARCH_X86_64 ) || defined(RTE_ARCH_I686 ) || defined(RTE_ARCH_X86_X32 ) +#if defined(RTE_ARCH_X86 )const uint32_t *k = (const uint32_t *)key;const uint32_t s =0 ;#else
Signature · 1 line
2.23.0
Quoted 14 lines · David Marchand
jhash has been forgotten when factorising the x86 arch check.
Fixes dbf17d44f375 ("hash: use common x86 flag")Signed-off-by David Marchand <[email protected]>--- lib/librte_hash/rte_jhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/librte_hash/rte_jhash.h +0
-0
lib/librte_hash/rte_jhash.h __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc, · line 95
Quoted 6 lines
lib/librte_hash/rte_jhash.h +1
-1@@ -91,7 +91,7 @@ __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc,* Check key alignment. For x86 architecture, first case is always optimal * If check_align is not set, first case will be used */ -#if defined(RTE_ARCH_X86_64 ) || defined(RTE_ARCH_I686 ) || defined(RTE_ARCH_X86_X32 ) +#if defined(RTE_ARCH_X86 )const uint32_t *k = (const uint32_t *)key;
Acked-by Bruce Richardson <[email protected]>
David Marchand
AppliedQuoted 7 lines · Bruce Richardson
Quoted 5 lines · David Marchand
jhash has been forgotten when factorising the x86 arch check.
Fixes dbf17d44f375 ("hash: use common x86 flag")Signed-off-by David Marchand <[email protected]>Acked-by Bruce Richardson <[email protected]>
Applied.
Signature · 1 line
David Marchand