summaryrefslogtreecommitdiff
path: root/libc/string/sparc/sparc32/memchr.S
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-12 00:48:12 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-12 00:48:12 +0000
commitf56e03f5754f666423a80c0d4e74a908a48e1997 (patch)
tree58862c7ce99dbc255b2b71d62334268fe6d32bb3 /libc/string/sparc/sparc32/memchr.S
parentdd1be05eec6310a34647575c0d20bb5a052563c2 (diff)
Add hidden versions, hope I made it correctly. Sparc optimized string functions are not usable with current build system, each function (as long as asm) should go into an own file, the file having the name of the function
Diffstat (limited to 'libc/string/sparc/sparc32/memchr.S')
-rw-r--r--libc/string/sparc/sparc32/memchr.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/string/sparc/sparc32/memchr.S b/libc/string/sparc/sparc32/memchr.S
index c00df2427..e8f44f176 100644
--- a/libc/string/sparc/sparc32/memchr.S
+++ b/libc/string/sparc/sparc32/memchr.S
@@ -63,6 +63,9 @@
1: retl
sub %o0, 1, %o0
+.globl memchr
+.set memchr,__memchr
+.hidden __memchr
ENTRY(__memchr)
andcc %o1, 0xff, %o1
sll %o1, 8, %g6
@@ -138,7 +141,6 @@ ENTRY(__memchr)
sub %o0, 4, %o0
END(__memchr)
-weak_alias (__memchr, memchr)
#if !__BOUNDED_POINTERS__
weak_alias (__memchr, __ubp_memchr)
#endif