hash: fix strict-aliasing for CRC
authorYerden Zhumabekov <e_zhumabekov@sts.kz>
Tue, 24 Mar 2015 13:31:55 +0000 (19:31 +0600)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Mar 2015 21:27:51 +0000 (22:27 +0100)
commit504a29af13a7b87064f9fe0c5cc020b8a739efd3
treec7ab5e77936b9400b3f645da698626c03d183c99
parent91a8743eb9bcbf83011bb8b6073cfc0ac11a8c85
hash: fix strict-aliasing for CRC

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.

Fixes: 614289298daf ("hash: slice CRC data into 8-byte pieces")

Signed-off-by: Yerden Zhumabekov <e_zhumabekov@sts.kz>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_hash/rte_hash_crc.h