about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/strcspn.S
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2015-06-29 17:47:01 +0200
committerOndřej Bílka <neleai@seznam.cz>2015-08-20 09:53:36 +0200
commit0e974603c566e8e25ffcf8a86d214c400f111090 (patch)
treefc40bcc79e8bf8df9818fc6546e620db534fd679 /sysdeps/x86_64/multiarch/strcspn.S
parent165308eb2c66542c88d002d63dc68df112f5c818 (diff)
downloadglibc-0e974603c566e8e25ffcf8a86d214c400f111090.tar.gz
glibc-0e974603c566e8e25ffcf8a86d214c400f111090.tar.xz
glibc-0e974603c566e8e25ffcf8a86d214c400f111090.zip
Improve generic strpbrk. neleai/string-x64
Diffstat (limited to 'sysdeps/x86_64/multiarch/strcspn.S')
-rw-r--r--sysdeps/x86_64/multiarch/strcspn.S21
1 files changed, 4 insertions, 17 deletions
diff --git a/sysdeps/x86_64/multiarch/strcspn.S b/sysdeps/x86_64/multiarch/strcspn.S
index 95e882c443..4fe4974812 100644
--- a/sysdeps/x86_64/multiarch/strcspn.S
+++ b/sysdeps/x86_64/multiarch/strcspn.S
@@ -54,22 +54,9 @@ ENTRY(STRCSPN)
 	leaq	STRCSPN_SSE42(%rip), %rax
 2:	ret
 END(STRCSPN)
-
-# undef ENTRY
-# define ENTRY(name) \
-	.type STRCSPN_SSE2, @function; \
-	.globl STRCSPN_SSE2; \
-	.align 16; \
-	STRCSPN_SSE2: cfi_startproc; \
-	CALL_MCOUNT
-# undef END
-# define END(name) \
-	cfi_endproc; .size STRCSPN_SSE2, .-STRCSPN_SSE2
 #endif
-#endif /* HAVE_SSE4_SUPPORT */
 
-#ifdef USE_AS_STRPBRK
-#include "../strpbrk.S"
-#else
-#include "../strcspn.S"
-#endif
+#else /* HAVE_SSE4_SUPPORT */
+weak_alias (STRCSPN_SSE2, STRCSPN)
+#endif /* HAVE_SSE4_SUPPORT */
+libc_hidden_builtin_def (STRCSPN)