X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/8e029c653e0567df7ce6933dde41f5830dbbbcda..fbd86d4cc20b02a10edcca92fb7ae0a143e63cc4:/x86_64/string/memcmp.s?ds=sidebyside diff --git a/x86_64/string/memcmp.s b/x86_64/string/memcmp.s index 640ffb6..398357d 100644 --- a/x86_64/string/memcmp.s +++ b/x86_64/string/memcmp.s @@ -118,7 +118,7 @@ LNotShort: cmova %rcx,%rax // %eax = max(LHS offset, RHS offset); movl $4096,%ecx subl %eax,%ecx // get #bytes to next page crossing - cmpl %edx,%ecx // will operand run out first? + cmpq %rdx,%rcx // will operand run out first? cmova %edx,%ecx // get min(length remaining, bytes to page end) movl %ecx,%eax shrl $4,%ecx // get #chunks till end of operand or page