Deleted Added
full compact
bcmp.S (144868) bcmp.S (184547)
1#include <machine/asm.h>
1#include <machine/asm.h>
2__FBSDID("$FreeBSD: head/lib/libc/amd64/string/bcmp.S 144868 2005-04-10 18:12:07Z alc $");
2__FBSDID("$FreeBSD: head/lib/libc/amd64/string/bcmp.S 184547 2008-11-02 01:10:54Z peter $");
3
4#if 0
5 RCSID("$NetBSD: bcmp.S,v 1.1 2001/06/19 00:25:04 fvdl Exp $")
6#endif
7
8ENTRY(bcmp)
9 cld /* set compare direction forward */
10

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

17 movq %rdx,%rcx /* compare remainder by bytes */
18 andq $7,%rcx
19 repe
20 cmpsb
21L1:
22 setne %al
23 movsbl %al,%eax
24 ret
3
4#if 0
5 RCSID("$NetBSD: bcmp.S,v 1.1 2001/06/19 00:25:04 fvdl Exp $")
6#endif
7
8ENTRY(bcmp)
9 cld /* set compare direction forward */
10

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

17 movq %rdx,%rcx /* compare remainder by bytes */
18 andq $7,%rcx
19 repe
20 cmpsb
21L1:
22 setne %al
23 movsbl %al,%eax
24 ret
25END(bcmp)