summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-06-23 09:25:07 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-06-23 09:25:07 +0200
commitdd6075a9c8c56da0e86981bcb035826ce59fe7b6 (patch)
tree3f6c6fb6143ada6010ad5dd95b930445592424b1
parent3c671c08a7b8e01b030523b568998035138ddda4 (diff)
downloadufodecode-dd6075a9c8c56da0e86981bcb035826ce59fe7b6.tar.gz
ufodecode-dd6075a9c8c56da0e86981bcb035826ce59fe7b6.tar.bz2
ufodecode-dd6075a9c8c56da0e86981bcb035826ce59fe7b6.tar.xz
ufodecode-dd6075a9c8c56da0e86981bcb035826ce59fe7b6.zip
Declare src register consts to save another 2ms
-rw-r--r--src/ufodecode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ufodecode.c b/src/ufodecode.c
index e00ff38..563ebed 100644
--- a/src/ufodecode.c
+++ b/src/ufodecode.c
@@ -237,7 +237,7 @@ ufo_decode_frame_channels_v6 (UfoDecoder *decoder, uint16_t *pixel_buffer, uint3
const size_t space = 640;
#ifdef HAVE_SSE
const __m64 mask_fff = _mm_set_pi32 (0xfff, 0xfff);
- __m64 mm_r, src1, src2, src3;
+ __m64 mm_r;
uint32_t *result;
result = (uint32_t *) &mm_r;
@@ -251,9 +251,9 @@ ufo_decode_frame_channels_v6 (UfoDecoder *decoder, uint16_t *pixel_buffer, uint3
index = row_number * IPECAMERA_WIDTH_20MP + pixel_number;
#ifdef HAVE_SSE
- src1 = _mm_set_pi32 (raw[base], raw[base + 3]);
- src2 = _mm_set_pi32 (raw[base + 1], raw[base + 4]);
- src3 = _mm_set_pi32 (raw[base + 2], raw[base + 5]);
+ const __m64 src1 = _mm_set_pi32 (raw[base], raw[base + 3]);
+ const __m64 src2 = _mm_set_pi32 (raw[base + 1], raw[base + 4]);
+ const __m64 src3 = _mm_set_pi32 (raw[base + 2], raw[base + 5]);
mm_r = _mm_srli_pi32 (src1, 20);
pixel_buffer[index + 0 * space] = result[0];