From d204c4bf017dc8313fc315f5c4da4492acd7641f Mon Sep 17 00:00:00 2001 From: Johann Date: Wed, 24 May 2017 11:38:15 -0700 Subject: [PATCH] Use vdup instead of vmov Change-Id: Idb6248c1429b55176bb3e9f4e8365ea0ed2be62a --- vpx_dsp/arm/subpel_variance_neon.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vpx_dsp/arm/subpel_variance_neon.c b/vpx_dsp/arm/subpel_variance_neon.c index 906e4e698..1e8b322a0 100644 --- a/vpx_dsp/arm/subpel_variance_neon.c +++ b/vpx_dsp/arm/subpel_variance_neon.c @@ -30,8 +30,8 @@ static void var_filter_block2d_bil_w4(const uint8_t *src_ptr, int pixel_step, unsigned int output_height, const uint8_t *filter) { - const uint8x8_t f0 = vmov_n_u8(filter[0]); - const uint8x8_t f1 = vmov_n_u8(filter[1]); + const uint8x8_t f0 = vdup_n_u8(filter[0]); + const uint8x8_t f1 = vdup_n_u8(filter[1]); unsigned int i; for (i = 0; i < output_height; i += 2) { const uint8x8_t src_0 = load_unaligned_u8(src_ptr, src_pixels_per_line); @@ -54,8 +54,8 @@ static void var_filter_block2d_bil_w8(const uint8_t *src_ptr, int pixel_step, unsigned int output_height, const uint8_t *filter) { - const uint8x8_t f0 = vmov_n_u8(filter[0]); - const uint8x8_t f1 = vmov_n_u8(filter[1]); + const uint8x8_t f0 = vdup_n_u8(filter[0]); + const uint8x8_t f1 = vdup_n_u8(filter[1]); unsigned int i; for (i = 0; i < output_height; ++i) { const uint8x8_t src_0 = vld1_u8(&src_ptr[0]); @@ -78,8 +78,8 @@ static void var_filter_block2d_bil_w16(const uint8_t *src_ptr, unsigned int output_height, unsigned int output_width, const uint8_t *filter) { - const uint8x8_t f0 = vmov_n_u8(filter[0]); - const uint8x8_t f1 = vmov_n_u8(filter[1]); + const uint8x8_t f0 = vdup_n_u8(filter[0]); + const uint8x8_t f1 = vdup_n_u8(filter[1]); unsigned int i, j; for (i = 0; i < output_height; ++i) { for (j = 0; j < output_width; j += 16) { -- 2.40.0