hash: fix build on non-x86 arch
authorBruce Liu <2103458176@qq.com>
Wed, 8 Jul 2015 15:15:47 +0000 (23:15 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Jul 2015 01:20:11 +0000 (03:20 +0200)
commitb347adf962e14bcc711d7dfa818007c68b00cd49
tree64a3403933f0f8496518af49b1f975cee8953818
parent0e3f2317bc82003a07c9700ea8875a861c60634f
hash: fix build on non-x86 arch

In the no-x86 branch, a parentheses is missing.
And need to include <limits.h> header to use CHAR_BIT.

Fixes: 49361c3f3cfa ("hash: remove duplicated code")

Signed-off-by: Bruce Liu <2103458176@qq.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_hash/rte_jhash.h