From 1186b0e7339c01eedd57bc80d061cd188daf1a1e Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 2 Dec 2016 00:09:57 +0100 Subject: [PATCH] fix label name --- transport/internet/kcp/xor_amd64.s | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/transport/internet/kcp/xor_amd64.s b/transport/internet/kcp/xor_amd64.s index f0694266..fdbad2d9 100644 --- a/transport/internet/kcp/xor_amd64.s +++ b/transport/internet/kcp/xor_amd64.s @@ -7,7 +7,7 @@ TEXT ·xorfwd(SB),NOSPLIT,$0 MOVQ x+0(FP), DI ADDQ $4, DI // x[i+4] SUBQ $4, CX -loop: +xorfwdloop: MOVL (SI), AX XORL AX, (DI) ADDQ $4, SI @@ -15,10 +15,10 @@ loop: SUBQ $4, CX CMPL CX, $0 - JE done + JE xorfwddone - JMP loop -done: + JMP xorfwdloop +xorfwddone: RET // func xorbkd(x []byte) @@ -31,7 +31,7 @@ TEXT ·xorbkd(SB),NOSPLIT,$0 ADDQ CX, DI // x[-4] SUBQ $4, DI SUBQ $4, CX -loop: +xorbkdloop: MOVL (SI), AX XORL AX, (DI) SUBQ $4, SI @@ -39,9 +39,9 @@ loop: SUBQ $4, CX CMPL CX, $0 - JE done + JE xorbkddone - JMP loop + JMP xorbkdloop -done: +xorbkddone: RET