Deleted Added
full compact
strcmp.S (184547) strcmp.S (217106)
1/*
2 * Written by J.T. Conklin <jtc@acorntoolworks.com>
3 * Public domain.
4 */
5
6#include <machine/asm.h>
1/*
2 * Written by J.T. Conklin <jtc@acorntoolworks.com>
3 * Public domain.
4 */
5
6#include <machine/asm.h>
7__FBSDID("$FreeBSD: head/lib/libc/amd64/string/strcmp.S 184547 2008-11-02 01:10:54Z peter $");
7__FBSDID("$FreeBSD: head/lib/libc/amd64/string/strcmp.S 217106 2011-01-07 16:08:40Z kib $");
8
9#if 0
10 RCSID("$NetBSD: strcmp.S,v 1.3 2004/07/19 20:04:41 drochner Exp $")
11#endif
12
13ENTRY(strcmp)
14 /*
15 * Align s1 to word boundary.

--- 51 unchanged lines hidden (view full) ---

67 je .Lbyte_loop
68
69.Ldone:
70 movzbq %al,%rax
71 movzbq %dl,%rdx
72 subq %rdx,%rax
73 ret
74END(strcmp)
8
9#if 0
10 RCSID("$NetBSD: strcmp.S,v 1.3 2004/07/19 20:04:41 drochner Exp $")
11#endif
12
13ENTRY(strcmp)
14 /*
15 * Align s1 to word boundary.

--- 51 unchanged lines hidden (view full) ---

67 je .Lbyte_loop
68
69.Ldone:
70 movzbq %al,%rax
71 movzbq %dl,%rdx
72 subq %rdx,%rax
73 ret
74END(strcmp)
75
76 .section .note.GNU-stack,"",%progbits