summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-02-09 17:06:37 -0800
committerJosh Blum <josh@joshknows.com>2012-02-09 17:06:37 -0800
commitb6da2fe9af84663fa4dda923833e2319433b6f20 (patch)
treef246c8c3844efb1a5acae31f5071a9b8083f9073 /host
parent4044a9eeb6fb195b8e64cd1879b0d40973dc27cb (diff)
downloaduhd-b6da2fe9af84663fa4dda923833e2319433b6f20.tar.gz
uhd-b6da2fe9af84663fa4dda923833e2319433b6f20.tar.bz2
uhd-b6da2fe9af84663fa4dda923833e2319433b6f20.zip
uhd: fixed sse2 conversion fc32 to sc8_item32_be
Diffstat (limited to 'host')
-rw-r--r--host/lib/convert/convert_fc32_to_sc8_with_sse2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/convert/convert_fc32_to_sc8_with_sse2.cpp b/host/lib/convert/convert_fc32_to_sc8_with_sse2.cpp
index b8545bad0..b633f487c 100644
--- a/host/lib/convert/convert_fc32_to_sc8_with_sse2.cpp
+++ b/host/lib/convert/convert_fc32_to_sc8_with_sse2.cpp
@@ -68,7 +68,7 @@ DECLARE_CONVERTER(fc32, 1, sc8_item32_be, 1, PRIORITY_SIMD){
const __m128 scalar = _mm_set_ps1(float(scale_factor));
#define convert_fc32_1_to_sc8_item32_1_bswap_guts(_al_) \
- for (size_t j = 0; i+7 < nsamps; i+=8, j+=2){ \
+ for (size_t j = 0; i+7 < nsamps; i+=8, j+=4){ \
/* load from input */ \
__m128 tmp0 = _mm_load ## _al_ ## ps(reinterpret_cast<const float *>(input+i+0)); \
__m128 tmp1 = _mm_load ## _al_ ## ps(reinterpret_cast<const float *>(input+i+2)); \
@@ -112,7 +112,7 @@ DECLARE_CONVERTER(fc32, 1, sc8_item32_le, 1, PRIORITY_SIMD){
const __m128 scalar = _mm_set_ps1(float(scale_factor));
#define convert_fc32_1_to_sc8_item32_1_nswap_guts(_al_) \
- for (size_t j = 0; i+7 < nsamps; i+=8, j+=2){ \
+ for (size_t j = 0; i+7 < nsamps; i+=8, j+=4){ \
/* load from input */ \
__m128 tmp0 = _mm_load ## _al_ ## ps(reinterpret_cast<const float *>(input+i+0)); \
__m128 tmp1 = _mm_load ## _al_ ## ps(reinterpret_cast<const float *>(input+i+2)); \