Deleted Added
full compact
bcopy.S (144779) bcopy.S (184547)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from locore.s.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <machine/asm.h>
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from locore.s.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <machine/asm.h>
33__FBSDID("$FreeBSD: head/lib/libc/amd64/string/bcopy.S 144779 2005-04-08 05:10:18Z alc $");
33__FBSDID("$FreeBSD: head/lib/libc/amd64/string/bcopy.S 184547 2008-11-02 01:10:54Z peter $");
34
35#if 0
36 RCSID("$NetBSD: bcopy.S,v 1.2 2003/08/07 16:42:36 agc Exp $")
37#endif
38
39 /*
40 * (ov)bcopy (src,dst,cnt)
41 * ws@tools.de (Wolfgang Solfrank, TooLs GmbH) +49-228-985800

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

81 movq %rdx,%rcx /* copy remainder by words */
82 shrq $3,%rcx
83 subq $7,%rsi
84 subq $7,%rdi
85 rep
86 movsq
87 cld
88 ret
34
35#if 0
36 RCSID("$NetBSD: bcopy.S,v 1.2 2003/08/07 16:42:36 agc Exp $")
37#endif
38
39 /*
40 * (ov)bcopy (src,dst,cnt)
41 * ws@tools.de (Wolfgang Solfrank, TooLs GmbH) +49-228-985800

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

81 movq %rdx,%rcx /* copy remainder by words */
82 shrq $3,%rcx
83 subq $7,%rsi
84 subq $7,%rdi
85 rep
86 movsq
87 cld
88 ret
89#ifdef MEMCOPY
90END(memcpy)
91#else
92#ifdef MEMMOVE
93END(memmove)
94#else
95END(bcopy)
96#endif
97#endif