File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2737,15 +2737,15 @@ namespace xsimd
27372737 {
27382738 XSIMD_IF_CONSTEXPR (sizeof (T) == 1 )
27392739 {
2740- return static_cast <T>(_mm512_cvtsi512_si32 ( self) & 0xFF );
2740+ return static_cast <T>(_mm_cvtsi128_si32 ( _mm512_castsi512_si128 ( self) ) & 0xFF );
27412741 }
27422742 else XSIMD_IF_CONSTEXPR (sizeof (T) == 2 )
27432743 {
2744- return static_cast <T>(_mm512_cvtsi512_si32 ( self) & 0xFFFF );
2744+ return static_cast <T>(_mm_cvtsi128_si32 ( _mm512_castsi512_si128 ( self) ) & 0xFFFF );
27452745 }
27462746 else XSIMD_IF_CONSTEXPR (sizeof (T) == 4 )
27472747 {
2748- return static_cast <T>(_mm512_cvtsi512_si32 ( self));
2748+ return static_cast <T>(_mm_cvtsi128_si32 ( _mm512_castsi512_si128 ( self) ));
27492749 }
27502750 else XSIMD_IF_CONSTEXPR (sizeof (T) == 8 )
27512751 {
You can’t perform that action at this time.
0 commit comments