From 09a1b77a65202e6c569be7e1b31d9d453ef388a2 Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Thu, 9 Sep 2010 20:40:55 -0400 Subject: Fix errors. --- host/lib/transport/convert_types_impl.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host/lib/transport') diff --git a/host/lib/transport/convert_types_impl.hpp b/host/lib/transport/convert_types_impl.hpp index 6cfc8fed6..04e6fc81a 100644 --- a/host/lib/transport/convert_types_impl.hpp +++ b/host/lib/transport/convert_types_impl.hpp @@ -150,13 +150,16 @@ static UHD_INLINE void fc32_to_item32_nswap( size_t i; float32x4_t Q0 = vdupq_n_f32(shorts_per_float); - for (i=0; i < (nsamps & ~0x03); i+=4) { + for (i=0; i < (nsamps & ~0x03); i+=2) { float32x4_t Q1 = vld1q_f32(reinterpret_cast(&input[i])); float32x4_t Q2 = vmulq_f32(Q1, Q0); int32x4_t Q3 = vcvtq_s32_f32(Q2); int16x4_t D8 = vmovn_s32(Q3); vst1_s16((reinterpret_cast(&output[i])), D8); } + + for (; i < nsamps; i++) + output[i] = fc32_to_item32(input[i]); } #else -- cgit v1.2.3