Skip to content

Commit

Permalink
Fix conversion from simd8f to simd8i for MSVC ARM on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ebroglio committed Dec 27, 2024
1 parent 230c0b0 commit 7056528
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dlib/simd/simd8f.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7056528

Please sign in to comment.