shithub: dav1d

Download patch

ref: c58e9d576c4eaf393f6751ea6375803acd5dec81
parent: 25877c3bc065aba7b98a0145d5c43d7347f3adc7
author: Martin Storsjö <martin@martin.st>
date: Sat Nov 28 18:23:18 EST 2020

arm: looprestoration16: Fix comments referring to pixels as bytes

A number of other similar comments were updated to say pixels when
the 16 bpc code was written originally, but these were missed.

--- a/src/arm/32/looprestoration16.S
+++ b/src/arm/32/looprestoration16.S
@@ -133,7 +133,7 @@
 
         tst             r7,  #2 // LR_HAVE_RIGHT
         bne             4f
-        // If we'll need to pad the right edge, load that byte to pad with
+        // If we'll need to pad the right edge, load that pixel to pad with
         // here since we can find it pretty easily from here.
         sub             r9,  r5,  #14
         lsl             r9,  r9,  #1
--- a/src/arm/64/looprestoration16.S
+++ b/src/arm/64/looprestoration16.S
@@ -126,7 +126,7 @@
 
         tst             w7,  #2 // LR_HAVE_RIGHT
         b.ne            4f
-        // If we'll need to pad the right edge, load that byte to pad with
+        // If we'll need to pad the right edge, load that pixel to pad with
         // here since we can find it pretty easily from here.
         sub             w9,  w5,  #14
         ldr             h27, [x2,  w9, sxtw #1]
@@ -772,7 +772,7 @@
 2:
         tst             w7,  #2 // LR_HAVE_RIGHT
         b.ne            4f
-        // If we'll need to pad the right edge, load that byte to pad with
+        // If we'll need to pad the right edge, load that pixel to pad with
         // here since we can find it pretty easily from here.
         sub             w13, w5, #(2 + 16 - 2 + 1)
         ldr             h30, [x3,  w13, sxtw #1]
@@ -996,7 +996,7 @@
         // and shift v0/v1 to have 3x the first pixel at the front.
         dup             v2.8h,  v0.h[0]
         dup             v18.8h, v16.h[0]
-        // Move x3 back to account for the last 6 bytes we loaded before,
+        // Move x3 back to account for the last 3 pixels we loaded before,
         // which we shifted out.
         sub             x3,  x3,  #6
         sub             x12, x12, #6
@@ -1008,7 +1008,7 @@
 2:
         tst             w7,  #2 // LR_HAVE_RIGHT
         b.ne            4f
-        // If we'll need to pad the right edge, load that byte to pad with
+        // If we'll need to pad the right edge, load that pixel to pad with
         // here since we can find it pretty easily from here.
         sub             w13, w5, #(2 + 16 - 3 + 1)
         ldr             h30, [x3,  w13, sxtw #1]