summaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-09-09 20:40:55 -0400
committerPhilip Balister <philip@opensdr.com>2010-09-09 20:40:55 -0400
commit09a1b77a65202e6c569be7e1b31d9d453ef388a2 (patch)
tree266399bba8087fd819af6f7597ce66acc8eba615 /host/lib
parent93b77c39985f63dffcca3ef569aee8ee45708a1f (diff)
downloaduhd-09a1b77a65202e6c569be7e1b31d9d453ef388a2.tar.gz
uhd-09a1b77a65202e6c569be7e1b31d9d453ef388a2.tar.bz2
uhd-09a1b77a65202e6c569be7e1b31d9d453ef388a2.zip
Fix errors.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/transport/convert_types_impl.hpp5
1 files changed, 4 insertions, 1 deletions
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<const float *>(&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<int16_t *>(&output[i])), D8);
}
+
+ for (; i < nsamps; i++)
+ output[i] = fc32_to_item32(input[i]);
}
#else