numam-dpdk/lib/lpm
Stanislaw Kardach b13fb77583 lpm: fix scalar version header for C++
rte_xmm_t is a union type which wraps around xmm_t and maps its contents
to scalar structures. Since C++ has stricter type conversion rules than
C, the rte_xmm_t::x has to be used instead of C-casting.

The generated assembly is identical to the code without the fix (checked
both on x86 and RISC-V).

Fixes: 406937f89f ("lpm: add scalar version of lookupx4")

Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2022-06-15 09:12:19 +02:00
..
meson.build lpm: add scalar version of lookupx4 2022-06-03 11:22:31 +02:00
rte_lpm6.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
rte_lpm6.h lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
rte_lpm_altivec.h avoid AltiVec keyword vector 2022-05-25 11:49:39 +02:00
rte_lpm_neon.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_lpm_scalar.h lpm: fix scalar version header for C++ 2022-06-15 09:12:19 +02:00
rte_lpm_sse.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_lpm_sve.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_lpm.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
rte_lpm.h lpm: add scalar version of lookupx4 2022-06-03 11:22:31 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00