diff options
Diffstat (limited to 'rgo/src')
-rw-r--r-- | rgo/src/memeq.S | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/rgo/src/memeq.S b/rgo/src/memeq.S index d106804..9175630 100644 --- a/rgo/src/memeq.S +++ b/rgo/src/memeq.S @@ -31,9 +31,9 @@ rgo_memeq: pushl %ebx /* ebx/esi: Current right element. */ pushl %esi -.wrdeq: +.wrdcmp: cmpl $0x4,%ecx - jl .byteeq + jl .bytecmp movl (%eax),%ebx movl (%edx),%esi cmpl %ebx,%esi @@ -41,8 +41,8 @@ rgo_memeq: addl $0x4,%eax addl $0x4,%edx subl $0x4,%ecx - jmp .wrdeq -.byteeq: + jmp .wrdcmp +.bytecmp: testl %ecx,%ecx jne .eq /* If we have reached the final element, all previous elements have compared equal, and the memory sequences are equal. */ movb (%eax),%bl @@ -52,7 +52,7 @@ rgo_memeq: incl %eax incl %edx decl %ecx - jmp .byteeq + jmp .bytecmp .eq: popl %ebx popl %esi @@ -69,9 +69,9 @@ rgo_memeq: /* rdx: Address of the current right element. */ /* rax: Current left element. */ /* rcx: Current right element. */ -.wrdeq: +.wrdcmp: cmpq $0x8,%rsi - jl .byteeq + jl .bytecmp movq (%rdi),%rax movq (%rdx),%rcx cmpq %rax,%rcx @@ -79,8 +79,8 @@ rgo_memeq: addq $0x8,%rdi addq $0x8,%rdx subq $0x8,%rsi - jmp .wrdeq -.byteeq: + jmp .wrdcmp +.bytecmp: testq %rsi,%rsi jne .eq /* If we have reached the final element, all previous elements have compared equal, and the memory sequences are equal. */ movb (%rdi),%al @@ -90,7 +90,7 @@ rgo_memeq: incq %rdi incq %rdx decq %rsi - jmp .byteeq + jmp .bytecmp .eq: movb $0x1,%al ret |