[PATCH v2 1/2] lib/hash: initialize __m128i data type in a portable way
David Marchand
david.marchand at redhat.com
Thu Mar 6 14:32:14 CET 2025
On Tue, Mar 4, 2025 at 10:53 PM Andre Muezerie
<andremue at linux.microsoft.com> wrote:
>
> The mechanism used to initialize an __m128i data type in rte_thash.h is
> non-portable and MSVC does not like it. It clearly is not doing what
> is desired:
>
> ..\lib\hash\rte_thash.h(38): warning C4305: 'initializing':
> truncation from 'unsigned __int64' to 'char'
> ..\lib\hash\rte_thash.h(38): warning C4305: 'initializing':
> truncation from 'unsigned __int64' to 'char'
>
> A more portable approach is to use compiler intrinsics to perform the
> initialization. This patch uses a single compiler intrinsic to
> initialize the data.
>
> Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
No need to send a new revision.
I applied just this patch, and dropped the second patch in patchwork.
Applied, thanks.
--
David Marchand
More information about the dev
mailing list