Skip to content

Commit f27aefa

Browse files
committed
Fix compilation errors with GCC compiler that connot convert '__m512i' to '__m512h'.
Signed-off-by: Liang <xiaoxia.liang@intel.com>
1 parent 6411524 commit f27aefa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Library/Raisr_AVX512FP16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inline __m512i floor_ph_512(__m512h val_ph)
2121
inline __m128i floor_ph_128(__m128h val_ph)
2222
{
2323
__m128i ret_epi16;
24-
ret_epi16 = _mm512_castph512_ph128(_mm512_cvt_roundph_epi16(_mm512_castph128_ph512(val_ph), _MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC));
24+
ret_epi16 = _mm512_castsi512_si128(_mm512_cvt_roundph_epi16(_mm512_castph128_ph512(val_ph), _MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC));
2525
return ret_epi16;
2626
}
2727

0 commit comments

Comments
 (0)