View | Details | Raw Unified | Return to bug 12518 | Differences between
and this patch

Collapse All | Expand All

(-)glibc-2.13/sysdeps/x86_64/multiarch/memcpy-ssse3.S (+11 lines)
Lines 84-89 L(copy_forward): Link Here
84
	ALIGN (4)
84
	ALIGN (4)
85
L(80bytesormore):
85
L(80bytesormore):
86
#ifndef USE_AS_MEMMOVE
86
#ifndef USE_AS_MEMMOVE
87
	lea	(%rsi,%rdx),%r9
88
	lea	(%rdi,%rdx),%r11
89
	cmp	%rdi,%r9		/* dest start >= source end */
90
	jae	L(nonoverlap)		/*  -> nonoverlapping */
91
	cmp	%rsi,%r11		/* source start >= destination end */
92
	jae	L(nonoverlap)		/*  -> nonoverlapping */
93
	movb	$0, 0
94
	L(nonoverlap):
95
#endif
96
97
#ifndef USE_AS_MEMMOVE
87
	cmp	%dil, %sil
98
	cmp	%dil, %sil
88
	jle	L(copy_backward)
99
	jle	L(copy_backward)
89
#endif
100
#endif
(-)glibc-2.13/sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (+10 lines)
Lines 90-95 L(bk_write): Link Here
90
90
91
	ALIGN (4)
91
	ALIGN (4)
92
L(144bytesormore):
92
L(144bytesormore):
93
#ifndef USE_AS_MEMMOVE
94
	lea	(%rsi,%rdx),%r9
95
	lea	(%rdi,%rdx),%r11
96
	cmp	%rdi,%r9		/* dest start >= source end */
97
	jae	L(nonoverlap)		/*  -> nonoverlapping */
98
	cmp	%rsi,%r11		/* source start >= destination end */
99
	jae	L(nonoverlap)		/*  -> nonoverlapping */
100
	movb	$0, 0
101
	L(nonoverlap):
102
#endif
93
103
94
#ifndef USE_AS_MEMMOVE
104
#ifndef USE_AS_MEMMOVE
95
	cmp	%dil, %sil
105
	cmp	%dil, %sil

Return to bug 12518