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

Collapse All | Expand All

(-)a/sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (+11 lines)
Lines 57-62 END (MEMCPY_CHK) Link Here
57
#endif
57
#endif
58
58
59
ENTRY (MEMCPY)
59
ENTRY (MEMCPY)
60
#ifndef USE_AS_MEMMOVE
61
	lea	(%rsi, %rdx), %r9
62
	lea	(%rdi, %rdx), %r11
63
	cmp	%r9, %rdi		/* dest start >= source end */
64
	jae	L(nonoverlap)		/*  -> nonoverlapping */
65
	cmp	%r11, %rsi		/* source start >= destination end */
66
	jae	L(nonoverlap)		/*  -> nonoverlapping */
67
	movb	$0, 0
68
	L(nonoverlap):
69
#endif
70
60
	mov	%rdi, %rax
71
	mov	%rdi, %rax
61
#ifdef USE_AS_MEMPCPY
72
#ifdef USE_AS_MEMPCPY
62
	add	%rdx, %rax
73
	add	%rdx, %rax
(-)a/sysdeps/x86_64/multiarch/memcpy-ssse3.S (-1 / +11 lines)
Lines 57-62 END (MEMCPY_CHK) Link Here
57
#endif
57
#endif
58
58
59
ENTRY (MEMCPY)
59
ENTRY (MEMCPY)
60
#ifndef USE_AS_MEMMOVE
61
	lea	(%rsi, %rdx), %r9
62
	lea	(%rdi, %rdx), %r11
63
	cmp	%r9, %rdi		/* dest start >= source end */
64
	jae	L(nonoverlap)		/*  -> nonoverlapping */
65
	cmp	%r11, %rsi		/* source start >= destination end */
66
	jae	L(nonoverlap)		/*  -> nonoverlapping */
67
	movb	$0, 0
68
	L(nonoverlap):
69
#endif
70
60
	mov	%rdi, %rax
71
	mov	%rdi, %rax
61
#ifdef USE_AS_MEMPCPY
72
#ifdef USE_AS_MEMPCPY
62
	add	%rdx, %rax
73
	add	%rdx, %rax
63
- 

Return to bug 12518