summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2021-04-27 18:02:35 -0700
committerJames Zern <jzern@google.com>2021-04-27 18:02:35 -0700
commit5ca8c5f31d2d1c5d9760577a651e0d710cef7663 (patch)
tree49a1222847af719eb68878ef898b193b6e0b5bb2
parent9f57bc4d6c7a577538042a49ede8ee98dc8cc300 (diff)
downloadlibvpx-5ca8c5f31d2d1c5d9760577a651e0d710cef7663.tar
libvpx-5ca8c5f31d2d1c5d9760577a651e0d710cef7663.tar.gz
libvpx-5ca8c5f31d2d1c5d9760577a651e0d710cef7663.tar.bz2
libvpx-5ca8c5f31d2d1c5d9760577a651e0d710cef7663.zip
vpx_convolve_copy_neon: prefer != 0 to > 0 in tests
this produces better assembly code Change-Id: I80ed1a165512e941b35a4965faa0c44403357e91
-rw-r--r--vpx_dsp/arm/vpx_convolve_copy_neon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vpx_dsp/arm/vpx_convolve_copy_neon.c b/vpx_dsp/arm/vpx_convolve_copy_neon.c
index 7abed67a4..361ec8a80 100644
--- a/vpx_dsp/arm/vpx_convolve_copy_neon.c
+++ b/vpx_dsp/arm/vpx_convolve_copy_neon.c
@@ -33,7 +33,7 @@ void vpx_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride,
src += src_stride;
dst += dst_stride;
h -= 2;
- } while (h > 0);
+ } while (h != 0);
} else if (w == 8) { // copy8
uint8x8_t s0, s1;
do {
@@ -47,7 +47,7 @@ void vpx_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride,
vst1_u8(dst, s1);
dst += dst_stride;
h -= 2;
- } while (h > 0);
+ } while (h != 0);
} else if (w < 32) { // copy16
uint8x16_t s0, s1;
do {
@@ -61,7 +61,7 @@ void vpx_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride,
vst1q_u8(dst, s1);
dst += dst_stride;
h -= 2;
- } while (h > 0);
+ } while (h != 0);
} else if (w == 32) { // copy32
uint8x16_t s0, s1, s2, s3;
do {
@@ -79,7 +79,7 @@ void vpx_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride,
vst1q_u8(dst + 16, s3);
dst += dst_stride;
h -= 2;
- } while (h > 0);
+ } while (h != 0);
} else { // copy64
uint8x16_t s0, s1, s2, s3;
do {