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

2025-03-04 Thread Bruce Richardson
On Wed, Nov 27, 2024 at 02:57:57PM -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

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

2025-03-03 Thread Andre Muezerie
On Wed, Nov 27, 2024 at 02:57:57PM -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 1/2] lib/hash: initialize __m128i data type in a portable way

2024-11-27 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

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

2024-11-27 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