diff options
author | Philip Balister <philip@opensdr.com> | 2010-09-09 20:40:55 -0400 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2010-09-09 20:40:55 -0400 |
commit | 09a1b77a65202e6c569be7e1b31d9d453ef388a2 (patch) | |
tree | 266399bba8087fd819af6f7597ce66acc8eba615 /host/lib | |
parent | 93b77c39985f63dffcca3ef569aee8ee45708a1f (diff) | |
download | uhd-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.hpp | 5 |
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 |