Deleted Added
full compact
strcpy.S (85437) strcpy.S (91999)
1/*
2 * Copyright (c) 1993 Winning Strategies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#if defined(LIBC_RCS) && !defined(lint)
32 .text
1/*
2 * Copyright (c) 1993 Winning Strategies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#if defined(LIBC_RCS) && !defined(lint)
32 .text
33 .asciz "$FreeBSD: head/lib/libc/i386/string/strcpy.S 85437 2001-10-24 20:29:14Z peter $"
33 .asciz "$FreeBSD: head/lib/libc/i386/string/strcpy.S 91999 2002-03-10 12:08:28Z billf $"
34#endif /* LIBC_RCS and not lint */
35
36#include <machine/asm.h>
37
38/*
39 * strcpy (dst, src)
40 * copy the string src to dst.
41 *
42 * Written by:
43 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc.
44 */
45
46/*
47 * I've unrolled the loop eight times: large enough to make a
48 * significant difference, and small enough not to totally trash the
34#endif /* LIBC_RCS and not lint */
35
36#include <machine/asm.h>
37
38/*
39 * strcpy (dst, src)
40 * copy the string src to dst.
41 *
42 * Written by:
43 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc.
44 */
45
46/*
47 * I've unrolled the loop eight times: large enough to make a
48 * significant difference, and small enough not to totally trash the
49 * cashe.
49 * cache.
50 */
51
52ENTRY(strcpy)
53 movl 4(%esp),%ecx /* dst address */
54 movl 8(%esp),%edx /* src address */
55 pushl %ecx /* push dst address */
56
57 .align 2,0x90

--- 36 unchanged lines hidden ---
50 */
51
52ENTRY(strcpy)
53 movl 4(%esp),%ecx /* dst address */
54 movl 8(%esp),%edx /* src address */
55 pushl %ecx /* push dst address */
56
57 .align 2,0x90

--- 36 unchanged lines hidden ---