Deleted Added
full compact
stpcpy.S (145459) stpcpy.S (184547)
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/strcpy.S 145459 2005-04-23 18:45:36Z alc $");
7__FBSDID("$FreeBSD: head/lib/libc/amd64/string/strcpy.S 184547 2008-11-02 01:10:54Z peter $");
8
9#if 0
10 RCSID("$NetBSD: strcpy.S,v 1.3 2004/07/19 20:04:41 drochner Exp $")
11#endif
12
13/*
14 * This strcpy implementation copies a byte at a time until the
15 * source pointer is aligned to a word boundary, it then copies by

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

104 shrq $8,%rdx
105 movb %dl,(%rdi)
106 incq %rdi
107 testb %dl,%dl /* 8th byte == 0? */
108 jne .Lword_aligned
109
110.Ldone:
111 ret
8
9#if 0
10 RCSID("$NetBSD: strcpy.S,v 1.3 2004/07/19 20:04:41 drochner Exp $")
11#endif
12
13/*
14 * This strcpy implementation copies a byte at a time until the
15 * source pointer is aligned to a word boundary, it then copies by

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

104 shrq $8,%rdx
105 movb %dl,(%rdi)
106 incq %rdi
107 testb %dl,%dl /* 8th byte == 0? */
108 jne .Lword_aligned
109
110.Ldone:
111 ret
112END(strcpy)