summaryrefslogtreecommitdiff
path: root/libc/string/x86_64/strcspn.S
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-12 01:03:51 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-12 01:03:51 +0000
commit7e51a684c591db163a3944de55848dc642643b6c (patch)
tree67c62366ec191251ba2f5dea46a127303fd16f77 /libc/string/x86_64/strcspn.S
parentf56e03f5754f666423a80c0d4e74a908a48e1997 (diff)
Add hidden versions
Diffstat (limited to 'libc/string/x86_64/strcspn.S')
-rw-r--r--libc/string/x86_64/strcspn.S12
1 files changed, 9 insertions, 3 deletions
diff --git a/libc/string/x86_64/strcspn.S b/libc/string/x86_64/strcspn.S
index e1a22e4f1..e25100bc1 100644
--- a/libc/string/x86_64/strcspn.S
+++ b/libc/string/x86_64/strcspn.S
@@ -26,10 +26,16 @@
#include "_glibc_inc.h"
/* BEWARE: `#ifdef strcspn' means that strcspn is redefined as `strpbrk' */
-#define STRPBRK_P (defined strcspn)
+#define STRPBRK_P (defined __strcspn)
.text
-ENTRY (strcspn)
+#if STRPBRK_P
+#else
+.global strcspn
+.set strcspn,__strcspn
+.hidden __strcspn
+#endif
+ENTRY (__strcspn)
movq %rdi, %rdx /* Save SRC. */
@@ -120,4 +126,4 @@ L(4): addq $256, %rsp /* remove skipset */
non-valid character */
#endif
ret
-END (strcspn)
+END (__strcspn)