From 25993165f30c863b28b9a9887a2835af9c5f8cd1 Mon Sep 17 00:00:00 2001 From: ZVictoria Date: Sat, 28 Apr 2018 10:23:51 +0300 Subject: Fix for fp exception in vcvtq_u32_f32 --- NEON_2_SSE.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEON_2_SSE.h b/NEON_2_SSE.h index 0c1441a..25022b4 100644 --- a/NEON_2_SSE.h +++ b/NEON_2_SSE.h @@ -12723,7 +12723,7 @@ _NEON2SSE_INLINE uint32x4_t vcvtq_u32_f32(float32x4_t a) // VCVT.U32.F32 q0, q0 //No single instruction SSE solution but we could implement it as following: __m128i resi; __m128 zero, mask, a_pos, mask_f_max_si, res; - _NEON2SSE_ALIGN_16 int32_t c7fffffff[4] = {0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; + _NEON2SSE_ALIGN_16 float c7fffffff[4] = { 2.14748352e+009, 2.14748352e+009, 2.14748352e+009, 2.14748352e+009 }; zero = _mm_setzero_ps(); mask = _mm_cmpgt_ps(a, zero); a_pos = _mm_and_ps(a, mask); -- cgit v1.2.3