From 705652842072f3b18e98c42dacd00c74f928ec9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Neum=C3=BCller?= Date: Fri, 27 Dec 2024 19:41:23 +0100 Subject: [PATCH] Fix conversion from simd8f to simd8i for MSVC ARM on Windows --- dlib/simd/simd8f.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlib/simd/simd8f.h b/dlib/simd/simd8f.h index 628ba74eea..e75bf4f8ae 100644 --- a/dlib/simd/simd8f.h +++ b/dlib/simd/simd8f.h @@ -106,8 +106,13 @@ namespace dlib inline operator simd8i::rawarray() const { simd8i::rawarray temp; +#if defined(DLIB_HAVE_NEON) + temp.low = simd4i(vcvtq_s32_f32(_low)); + temp.high = simd4i(vcvtq_s32_f32(_high)); +#else temp.low = simd4i(_low); temp.high = simd4i(_high); +#endif return temp; }