[FFmpeg-devel] avfilter/x86/vf_hflip.asm: improve indentation

Submitted by Paul B Mahol on Dec. 4, 2017, 10:03 a.m.

Details

Message ID 20171204100350.24932-1-onemda@gmail.com
State New
Headers show

Commit Message

Paul B Mahol Dec. 4, 2017, 10:03 a.m.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavfilter/x86/vf_hflip.asm | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Comments

Martin Vignali Dec. 4, 2017, 11:35 a.m.
>      .end:
> -RET
> +    RET
>
> Maybe indent more the RET to be "inside" the end label.
Otherwise, ok (more easy to read)

Patch hide | download patch | download mbox

diff --git a/libavfilter/x86/vf_hflip.asm b/libavfilter/x86/vf_hflip.asm
index 867dcaeed5..49197e2c86 100644
--- a/libavfilter/x86/vf_hflip.asm
+++ b/libavfilter/x86/vf_hflip.asm
@@ -53,9 +53,9 @@  cglobal hflip_byte, 3, 6, 3, src, dst, w, x, v, r
         cmp     xq, wq
         jl .loop0
 
-        cmp    rq, 0
-        je .end
-        add    wq, rq
+    cmp     rq, 0
+    je .end
+    add     wq, rq
 
     .loop1:
         neg    xq
@@ -66,7 +66,7 @@  cglobal hflip_byte, 3, 6, 3, src, dst, w, x, v, r
         cmp    xq, wq
         jl .loop1
     .end:
-RET
+    RET
 
 cglobal hflip_short, 3, 6, 3, src, dst, w, x, v, r
     mova    m0, [pb_flip_short]
@@ -92,9 +92,9 @@  cglobal hflip_short, 3, 6, 3, src, dst, w, x, v, r
         cmp     xq, wq
         jl .loop0
 
-        cmp    rq, 0
-        je .end
-        add    wq, rq
+    cmp     rq, 0
+    je .end
+    add     wq, rq
 
     .loop1:
         neg    xq
@@ -105,4 +105,4 @@  cglobal hflip_short, 3, 6, 3, src, dst, w, x, v, r
         cmp    xq, wq
         jl .loop1
     .end:
-RET
+    RET