From 9251c2f6d27bfc3e663b89f1d5132844afec784e Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 26 May 2014 17:17:04 -0700 Subject: [PATCH] (enc|dec)_neon: use vcreate_*() where appropriate this is more portable than {} initialization. more involved cases are left for a follow-up. Change-Id: If8783423d17e90694b168a64ba313ed62ce2cc17 --- src/dsp/dec_neon.c | 4 ++-- src/dsp/enc_neon.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dsp/dec_neon.c b/src/dsp/dec_neon.c index 7b189ed8..4ec11ec4 100644 --- a/src/dsp/dec_neon.c +++ b/src/dsp/dec_neon.c @@ -403,8 +403,8 @@ static WEBP_INLINE void SaturateAndStore4x4(uint8_t* const dst, static WEBP_INLINE void Add4x4(const int16x8_t row01, const int16x8_t row23, uint8_t* const dst) { - uint32x2_t dst01 = {0, 0}; - uint32x2_t dst23 = {0, 0}; + uint32x2_t dst01 = vcreate_u32(0); + uint32x2_t dst23 = vcreate_u32(0); // Load the source pixels. dst01 = vld1_lane_u32((uint32_t*)(dst + 0 * BPS), dst01, 0); diff --git a/src/dsp/enc_neon.c b/src/dsp/enc_neon.c index c7704277..be7a1178 100644 --- a/src/dsp/enc_neon.c +++ b/src/dsp/enc_neon.c @@ -59,8 +59,8 @@ static WEBP_INLINE void SaturateAndStore4x4(uint8_t* const dst, static WEBP_INLINE void Add4x4(const int16x8_t row01, const int16x8_t row23, const uint8_t* const ref, uint8_t* const dst) { - uint32x2_t dst01 = {0, 0}; - uint32x2_t dst23 = {0, 0}; + uint32x2_t dst01 = vcreate_u32(0); + uint32x2_t dst23 = vcreate_u32(0); // Load the source pixels. dst01 = vld1_lane_u32((uint32_t*)(ref + 0 * BPS), dst01, 0);