diff options
Diffstat (limited to 'sysdeps/rs6000')
-rw-r--r-- | sysdeps/rs6000/ffs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/rs6000/ffs.c b/sysdeps/rs6000/ffs.c index f078c91e98..2cf2302605 100644 --- a/sysdeps/rs6000/ffs.c +++ b/sysdeps/rs6000/ffs.c @@ -26,7 +26,7 @@ #ifdef __GNUC__ int -ffs (x) +__ffs (x) int x; { int cnt; @@ -34,6 +34,7 @@ ffs (x) asm ("cntlz %0,%1" : "=r" (cnt) : "r" (x & -x)); return 32 - cnt; } +weak_alias (__ffs, ffs) #else #include <sysdeps/generic/ffs.c> |