summaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/ffs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/ffs.c')
-rw-r--r--sysdeps/powerpc/ffs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/powerpc/ffs.c b/sysdeps/powerpc/ffs.c
index 1e65bea459..2ae12e6338 100644
--- a/sysdeps/powerpc/ffs.c
+++ b/sysdeps/powerpc/ffs.c
@@ -21,10 +21,11 @@
#include <string.h>
int
-ffs (int x)
+__ffs (int x)
{
int cnt;
asm ("cntlzw %0,%1" : "=r" (cnt) : "r" (x & -x));
return 32 - cnt;
}
+weak_alias (__ffs, ffs)