[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