[EXTERNAL] [PATCH v2] drivers/net: use intrinsic to access content of __m128i
Vamsi Krishna Attunuru
vattunuru at marvell.com
Wed Feb 5 05:50:28 CET 2025
>-----Original Message-----
>From: Andre Muezerie <andremue at linux.microsoft.com>
>Sent: Saturday, December 28, 2024 6:53 AM
>To: andremue at linux.microsoft.com
>Cc: bruce.richardson at intel.com; dev at dpdk.org;
>konstantin.v.ananyev at yandex.ru; Vamsi Krishna Attunuru
><vattunuru at marvell.com>
>Subject: [EXTERNAL] [PATCH v2] drivers/net: use intrinsic to access content of
>__m128i
>
>Compiler intrinsics should be used to access/manipulate contents of __m128i.
>Existing code results in the error below when compiled with MSVC:
>.. /drivers/net/octeon_ep/cnxk_ep_rx_sse. c(61): error C2440: 'type cast':
>cannot convert from '__m128i'
>
>Compiler intrinsics should be used to access/manipulate contents of __m128i.
>Existing code results in the error below when compiled with MSVC:
>
>../drivers/net/octeon_ep/cnxk_ep_rx_sse.c(61): error C2440:
> 'type cast': cannot convert from '__m128i' to 'rte_xmm_t'
>
>The fix is to use an intrinsic instead. This compiles fine with gcc, clang and
>msvc.
>
>Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
Acked-by: Vamsi Attunuru <vattunuru at marvell.com>
More information about the dev
mailing list