From 9c56c8a12e1b074c49e6af3e662ad26e88fd2d52 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 9 Oct 2014 12:35:41 +0200 Subject: [PATCH] enc_neon: initialize vectors w/vdup_n_u32 replaces {} initialization gnu-ism (cherry picked from commit 7534d716407712329fe73776e5644183515332fa) Change-Id: I5a7b2d4246f0205e4bfb7f4b77d720c47d8674ec --- src/dsp/enc_neon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dsp/enc_neon.c b/src/dsp/enc_neon.c index 5b79c9c2..42041f73 100644 --- a/src/dsp/enc_neon.c +++ b/src/dsp/enc_neon.c @@ -253,7 +253,7 @@ static void ITransform(const uint8_t* ref, // Load all 4x4 pixels into a single uint8x16_t variable. static uint8x16_t Load4x4(const uint8_t* src) { - uint32x4_t out = { 0, 0, 0, 0 }; + uint32x4_t out = vdupq_n_u32(0); out = vld1q_lane_u32((const uint32_t*)(src + 0 * BPS), out, 0); out = vld1q_lane_u32((const uint32_t*)(src + 1 * BPS), out, 1); out = vld1q_lane_u32((const uint32_t*)(src + 2 * BPS), out, 2); @@ -929,7 +929,7 @@ static int SumToInt(uint32x4_t sum) { } static int SSE16x16(const uint8_t* a, const uint8_t* b) { - uint32x4_t sum = { 0, 0, 0, 0 }; + uint32x4_t sum = vdupq_n_u32(0); int y; for (y = 0; y < 16; ++y) { AccumulateSSE16(a + y * BPS, b + y * BPS, &sum); @@ -938,7 +938,7 @@ static int SSE16x16(const uint8_t* a, const uint8_t* b) { } static int SSE16x8(const uint8_t* a, const uint8_t* b) { - uint32x4_t sum = { 0, 0, 0, 0 }; + uint32x4_t sum = vdupq_n_u32(0); int y; for (y = 0; y < 8; ++y) { AccumulateSSE16(a + y * BPS, b + y * BPS, &sum); @@ -947,7 +947,7 @@ static int SSE16x8(const uint8_t* a, const uint8_t* b) { } static int SSE8x8(const uint8_t* a, const uint8_t* b) { - uint32x4_t sum = { 0, 0, 0, 0 }; + uint32x4_t sum = vdupq_n_u32(0); int y; for (y = 0; y < 8; ++y) { const uint8x8_t a0 = vld1_u8(a + y * BPS);