Re: [PATCH v2 1/2] lib/hash: initialize __m128i data type in a portable way

2025-03-08 Thread David Marchand
On Tue, Mar 4, 2025 at 10:53 PM Andre Muezerie 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 fr

Re: [PATCH v2 1/2] lib/hash: initialize __m128i data type in a portable way

2025-03-05 Thread Bruce Richardson
On Tue, Mar 04, 2025 at 01:53:18PM -0800, Andre Muezerie 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': > trunc

[PATCH v2 1/2] lib/hash: initialize __m128i data type in a portable way

2025-03-04 Thread Andre Muezerie
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