diff options
author | Josh Blum <josh@joshknows.com> | 2012-04-27 17:23:18 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-05-09 23:54:03 -0700 |
commit | 4c244c78a75646ad4040fb328fa64bb752852512 (patch) | |
tree | 1261591e9c7cc112fcce73da697a236f1934127e /host/lib/convert/convert_with_neon.cpp | |
parent | 58bebf5511dffde44fb0e2a14edb3778e54aaf2b (diff) | |
download | uhd-4c244c78a75646ad4040fb328fa64bb752852512.tar.gz uhd-4c244c78a75646ad4040fb328fa64bb752852512.tar.bz2 uhd-4c244c78a75646ad4040fb328fa64bb752852512.zip |
convert: squashed converter and sse2 work
Diffstat (limited to 'host/lib/convert/convert_with_neon.cpp')
-rw-r--r-- | host/lib/convert/convert_with_neon.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/host/lib/convert/convert_with_neon.cpp b/host/lib/convert/convert_with_neon.cpp index c7ad62104..ad184e1b6 100644 --- a/host/lib/convert/convert_with_neon.cpp +++ b/host/lib/convert/convert_with_neon.cpp @@ -1,5 +1,5 @@ // -// Copyright 2011-2011 Ettus Research LLC +// Copyright 2011-2012 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -36,8 +36,7 @@ DECLARE_CONVERTER(fc32, 1, sc16_item32_le, 1, PRIORITY_SIMD){ vst1_s16((reinterpret_cast<int16_t *>(&output[i])), D9); } - for (; i < nsamps; i++) - output[i] = fc32_to_item32_sc16(input[i], scale_factor); + xx_to_item32_sc16<uhd::htowx>(input+i, output+i, nsamps-i, scale_factor); } DECLARE_CONVERTER(sc16_item32_le, 1, fc32, 1, PRIORITY_SIMD){ @@ -56,6 +55,5 @@ DECLARE_CONVERTER(sc16_item32_le, 1, fc32, 1, PRIORITY_SIMD){ vst1q_f32((reinterpret_cast<float *>(&output[i])), Q4); } - for (; i < nsamps; i++) - output[i] = item32_sc16_to_fc32(input[i], scale_factor); + item32_sc16_to_xx<uhd::htowx>(input+i, output+i, nsamps-i, scale_factor); } |