From b6da2fe9af84663fa4dda923833e2319433b6f20 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 9 Feb 2012 17:06:37 -0800 Subject: uhd: fixed sse2 conversion fc32 to sc8_item32_be --- host/lib/convert/convert_fc32_to_sc8_with_sse2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib') 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(input+i+0)); \ __m128 tmp1 = _mm_load ## _al_ ## ps(reinterpret_cast(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(input+i+0)); \ __m128 tmp1 = _mm_load ## _al_ ## ps(reinterpret_cast(input+i+2)); \ -- cgit v1.2.3