summary refs log tree commit diff
path: root/sysdeps/i386/memcpy.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-02-10 11:20:54 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-02-23 14:06:49 -0300
commit8bad328203ee79fbc2e895e2a3f17f6a221d0814 (patch)
treee0ba7c548bf66cbf98b6cba25a6cd34c3ede3572 /sysdeps/i386/memcpy.S
parent86a82cd57ce102d09bb6753af01787008d134618 (diff)
downloadglibc-8bad328203ee79fbc2e895e2a3f17f6a221d0814.tar.gz
glibc-8bad328203ee79fbc2e895e2a3f17f6a221d0814.tar.xz
glibc-8bad328203ee79fbc2e895e2a3f17f6a221d0814.zip
i386: Remove bcopy optimizations
The symbols is not present in current POSIX specification and compiler
already generates memmove call.
Diffstat (limited to 'sysdeps/i386/memcpy.S')
-rw-r--r--sysdeps/i386/memcpy.S16
1 files changed, 4 insertions, 12 deletions
diff --git a/sysdeps/i386/memcpy.S b/sysdeps/i386/memcpy.S
index 0eca548e3e..fc197e92a8 100644
--- a/sysdeps/i386/memcpy.S
+++ b/sysdeps/i386/memcpy.S
@@ -24,15 +24,9 @@
 # define MEMCPY_CHK	__memcpy_chk
 #endif
 
-#ifdef USE_AS_BCOPY
-# define STR2		12
-# define STR1		STR2+4
-# define N     		STR1+4
-#else
-# define STR1		12
-# define STR2		STR1+4
-# define N     		STR2+4
-#endif
+#define STR1		12
+#define STR2		STR1+4
+#define N     		STR2+4
 
 #define CFI_PUSH(REG)						\
   cfi_adjust_cfa_offset (4);					\
@@ -46,7 +40,7 @@
 #define POP(REG)	popl REG; CFI_POP (REG)
 
 	.text
-#if defined SHARED && IS_IN (libc) && !defined USE_AS_BCOPY
+#if defined SHARED && IS_IN (libc)
 ENTRY (MEMCPY_CHK)
 	movl	12(%esp), %eax
 	cmpl	%eax, 16(%esp)
@@ -90,6 +84,4 @@ L(bwd_write_0bytes):
 
 END (MEMCPY)
 
-#ifndef USE_AS_BCOPY
 libc_hidden_builtin_def (MEMCPY)
-#endif