History

Merge changes Iebe9842f,I174b67a5,I80ed1a16

* changes: vpx_convolve_neon: prefer != 0 to > 0 in tests vpx_convolve_avg_neon: prefer != 0 to > 0 in tests vpx_convolve_copy_neon: prefer != 0 to > 0 in tests

James Zern committed 5 years ago

Commit c4fceb92 parents 5564337 ff67c843 files · +18 −18Browse files

Unified · Split

3 files
  1. vpx_dsp/arm/vpx_convolve8_neon.c +10 −10
  2. vpx_dsp/arm/vpx_convolve_avg_neon.c +4 −4
  3. vpx_dsp/arm/vpx_convolve_copy_neon.c +4 −4
vpx_dsp/arm/vpx_convolve8_neon.c+10−10
@@ -145,7 +145,7 @@ void vpx_convolve8_horiz_neon(const uint8_t *src, ptrdiff_t src_stride, · 144 unmodified lines
145145 src += 4;
146146 dst += 4;
147147 w -= 4;
148− } while (w > 0);
148+ } while (w != 0);
149149 } else {
150150 const int16x8_t filter3 = vdupq_lane_s16(vget_low_s16(filters), 3);
151151 const int16x8_t filter4 = vdupq_lane_s16(vget_high_s16(filters), 0);
@@ -296,7 +296,7 @@ void vpx_convolve8_horiz_neon(const uint8_t *src, ptrdiff_t src_stride, · 144 unmodified lines
296296 s += 8;
297297 d += 8;
298298 width -= 8;
299− } while (width > 0);
299+ } while (width != 0);
300300 src += 8 * src_stride;
301301 dst += 8 * dst_stride;
302302 h -= 8;
@@ -402,7 +402,7 @@ void vpx_convolve8_avg_horiz_neon(const uint8_t *src, ptrdiff_t src_stride, · 99 unmodified lines
402402 src += 4;
403403 dst += 4;
404404 w -= 4;
405− } while (w > 0);
405+ } while (w != 0);
406406 } else {
407407 const int16x8_t filter3 = vdupq_lane_s16(vget_low_s16(filters), 3);
408408 const int16x8_t filter4 = vdupq_lane_s16(vget_high_s16(filters), 0);
@@ -586,7 +586,7 @@ void vpx_convolve8_avg_horiz_neon(const uint8_t *src, ptrdiff_t src_stride, · 177 unmodified lines
586586 s += 8;
587587 d += 8;
588588 width -= 8;
589− } while (width > 0);
589+ } while (width != 0);
590590 src += 8 * src_stride;
591591 dst += 8 * dst_stride;
592592 h -= 8;
@@ -679,7 +679,7 @@ void vpx_convolve8_vert_neon(const uint8_t *src, ptrdiff_t src_stride, · 86 unmodified lines
679679 s5 = s9;
680680 s6 = s10;
681681 h -= 4;
682− } while (h > 0);
682+ } while (h != 0);
683683 } else {
684684 const int16x8_t filter3 = vdupq_lane_s16(vget_low_s16(filters), 3);
685685 const int16x8_t filter4 = vdupq_lane_s16(vget_high_s16(filters), 0);
@@ -759,11 +759,11 @@ void vpx_convolve8_vert_neon(const uint8_t *src, ptrdiff_t src_stride, · 73 unmodified lines
759759 s5 = s9;
760760 s6 = s10;
761761 height -= 4;
762− } while (height > 0);
762+ } while (height != 0);
763763 src += 8;
764764 dst += 8;
765765 w -= 8;
766− } while (w > 0);
766+ } while (w != 0);
767767 }
768768 }
769769
@@ -860,7 +860,7 @@ void vpx_convolve8_avg_vert_neon(const uint8_t *src, ptrdiff_t src_stride, · 90 unmodified lines
860860 s5 = s9;
861861 s6 = s10;
862862 h -= 4;
863− } while (h > 0);
863+ } while (h != 0);
864864 } else {
865865 const int16x8_t filter3 = vdupq_lane_s16(vget_low_s16(filters), 3);
866866 const int16x8_t filter4 = vdupq_lane_s16(vget_high_s16(filters), 0);
@@ -950,10 +950,10 @@ void vpx_convolve8_avg_vert_neon(const uint8_t *src, ptrdiff_t src_stride, · 83 unmodified lines
950950 s5 = s9;
951951 s6 = s10;
952952 height -= 4;
953− } while (height > 0);
953+ } while (height != 0);
954954 src += 8;
955955 dst += 8;
956956 w -= 8;
957− } while (w > 0);
957+ } while (w != 0);
958958 }
959959 }
vpx_dsp/arm/vpx_convolve_avg_neon.c+4−4
@@ -43,7 +43,7 @@ void vpx_convolve_avg_neon(const uint8_t *src, ptrdiff_t src_stride, · 42 unmodified lines
4343 vst1_lane_u32((uint32_t *)dst, vreinterpret_u32_u8(dd0), 1);
4444 dst += dst_stride;
4545 h -= 2;
46− } while (h > 0);
46+ } while (h != 0);
4747 } else if (w == 8) { // avg8
4848 uint8x8_t s0, s1, d0, d1;
4949 uint8x16_t s01, d01;
@@ -64,7 +64,7 @@ void vpx_convolve_avg_neon(const uint8_t *src, ptrdiff_t src_stride, · 14 unmodified lines
6464 vst1_u8(dst, vget_high_u8(d01));
6565 dst += dst_stride;
6666 h -= 2;
67− } while (h > 0);
67+ } while (h != 0);
6868 } else if (w < 32) { // avg16
6969 uint8x16_t s0, s1, d0, d1;
7070 do {
@@ -83,7 +83,7 @@ void vpx_convolve_avg_neon(const uint8_t *src, ptrdiff_t src_stride, · 12 unmodified lines
8383 vst1q_u8(dst, d1);
8484 dst += dst_stride;
8585 h -= 2;
86− } while (h > 0);
86+ } while (h != 0);
8787 } else if (w == 32) { // avg32
8888 uint8x16_t s0, s1, s2, s3, d0, d1, d2, d3;
8989 do {
@@ -110,7 +110,7 @@ void vpx_convolve_avg_neon(const uint8_t *src, ptrdiff_t src_stride, · 20 unmodified lines
110110 vst1q_u8(dst + 16, d3);
111111 dst += dst_stride;
112112 h -= 2;
113− } while (h > 0);
113+ } while (h != 0);
114114 } else { // avg64
115115 uint8x16_t s0, s1, s2, s3, d0, d1, d2, d3;
116116 do {
vpx_dsp/arm/vpx_convolve_copy_neon.c+4−4
@@ -33,7 +33,7 @@ void vpx_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride, · 32 unmodified lines
3333 src += src_stride;
3434 dst += dst_stride;
3535 h -= 2;
36− } while (h > 0);
36+ } while (h != 0);
3737 } else if (w == 8) { // copy8
3838 uint8x8_t s0, s1;
3939 do {
@@ -47,7 +47,7 @@ void vpx_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride, · 7 unmodified lines
4747 vst1_u8(dst, s1);
4848 dst += dst_stride;
4949 h -= 2;
50− } while (h > 0);
50+ } while (h != 0);
5151 } else if (w < 32) { // copy16
5252 uint8x16_t s0, s1;
5353 do {
@@ -61,7 +61,7 @@ void vpx_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride, · 7 unmodified lines
6161 vst1q_u8(dst, s1);
6262 dst += dst_stride;
6363 h -= 2;
64− } while (h > 0);
64+ } while (h != 0);
6565 } else if (w == 32) { // copy32
6666 uint8x16_t s0, s1, s2, s3;
6767 do {
@@ -79,7 +79,7 @@ void vpx_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride, · 11 unmodified lines
7979 vst1q_u8(dst + 16, s3);
8080 dst += dst_stride;
8181 h -= 2;
82− } while (h > 0);
82+ } while (h != 0);
8383 } else { // copy64
8484 uint8x16_t s0, s1, s2, s3;
8585 do {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t