Skip to content

Commit 7056528

Browse files
committed
Fix conversion from simd8f to simd8i for MSVC ARM on Windows
1 parent 230c0b0 commit 7056528

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dlib/simd/simd8f.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,13 @@ namespace dlib
106106
inline operator simd8i::rawarray() const
107107
{
108108
simd8i::rawarray temp;
109+
#if defined(DLIB_HAVE_NEON)
110+
temp.low = simd4i(vcvtq_s32_f32(_low));
111+
temp.high = simd4i(vcvtq_s32_f32(_high));
112+
#else
109113
temp.low = simd4i(_low);
110114
temp.high = simd4i(_high);
115+
#endif
111116
return temp;
112117
}
113118

0 commit comments

Comments
 (0)