summaryrefslogtreecommitdiff
path: root/patches/source/glibc/glibc.disable.broken.optimized.memcpy.diff
blob: 8034f12014521dd3c19ae769176ee8e5f9c5b0d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- ./sysdeps/x86_64/multiarch/memcpy.S.orig	2011-01-17 22:34:07.000000000 -0600
+++ ./sysdeps/x86_64/multiarch/memcpy.S	2011-02-08 19:36:26.000000000 -0600
@@ -32,12 +32,6 @@
 	jne	1f
 	call	__init_cpu_features
 1:	leaq	__memcpy_sse2(%rip), %rax
-	testl	$bit_SSSE3, __cpu_features+CPUID_OFFSET+index_SSSE3(%rip)
-	jz	2f
-	leaq	__memcpy_ssse3(%rip), %rax
-	testl	$bit_Fast_Copy_Backward, __cpu_features+FEATURE_OFFSET+index_Fast_Copy_Backward(%rip)
-	jz	2f
-	leaq	__memcpy_ssse3_back(%rip), %rax
 2:	ret
 END(memcpy)
 
--- ./sysdeps/x86_64/multiarch/mempcpy.S.orig	2011-01-17 22:34:07.000000000 -0600
+++ ./sysdeps/x86_64/multiarch/mempcpy.S	2011-02-08 19:36:37.000000000 -0600
@@ -31,12 +31,6 @@
 	jne	1f
 	call	__init_cpu_features
 1:	leaq	__mempcpy_sse2(%rip), %rax
-	testl	$bit_SSSE3, __cpu_features+CPUID_OFFSET+index_SSSE3(%rip)
-	jz	2f
-	leaq	__mempcpy_ssse3(%rip), %rax
-	testl	$bit_Fast_Copy_Backward, __cpu_features+FEATURE_OFFSET+index_Fast_Copy_Backward(%rip)
-	jz	2f
-	leaq	__mempcpy_ssse3_back(%rip), %rax
 2:	ret
 END(__mempcpy)