summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZVictoria <victoria.zhislina@intel.com>2018-04-28 10:23:51 +0300
committerZVictoria <victoria.zhislina@intel.com>2018-04-28 10:23:51 +0300
commit25993165f30c863b28b9a9887a2835af9c5f8cd1 (patch)
tree1ded8e4f365767df223a9e89a8440ac0ced46c8b
parent828c0b499cb5e291bdbe91b274904637e9cb7cfb (diff)
downloadneon_2_sse-25993165f30c863b28b9a9887a2835af9c5f8cd1.tar.gz
Fix for fp exception in vcvtq_u32_f32
-rw-r--r--NEON_2_SSE.h2
1 files changed, 1 insertions, 1 deletions
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);