[dpdk-dev] [PATCH v2] hash: fix breaking strict-aliasing rules

2015-03-27 Thread Thomas Monjalon
> > Fix rte_hash_crc() function by making use of uintptr_t variable > > to hold a pointer to data being hashed. In this way, casting uint64_t > > pointer to uint32_t avoided. > > > > Signed-off-by: Yerden Zhumabekov > > Acked-by: Pablo de Lara Applied, thanks

[dpdk-dev] [PATCH v2] hash: fix breaking strict-aliasing rules

2015-03-26 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yerden > Zhumabekov > Sent: Tuesday, March 24, 2015 1:32 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] hash: fix breaking strict-aliasing rules > > Fix rte_hash_crc() f

[dpdk-dev] [PATCH v2] hash: fix breaking strict-aliasing rules

2015-03-24 Thread Yerden Zhumabekov
Fix rte_hash_crc() function by making use of uintptr_t variable to hold a pointer to data being hashed. In this way, casting uint64_t pointer to uint32_t avoided. Signed-off-by: Yerden Zhumabekov --- lib/librte_hash/rte_hash_crc.h | 21 +++-- 1 file changed, 11 insertions(+), 1