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.
Fixes: f22e705ebf12 ("eal/riscv: support RISC-V architecture")
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
static inline xmm_t
vect_and(xmm_t data, xmm_t mask)
{
- rte_xmm_t ret = (rte_xmm_t)data;
- rte_xmm_t m = (rte_xmm_t)mask;
+ rte_xmm_t ret = {.x = data };
+ rte_xmm_t m = {.x = mask };
ret.u64[0] &= m.u64[0];
ret.u64[1] &= m.u64[1];
return ret.x;