aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/ffs.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-09 22:34:19 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-09 22:34:19 +0000
commitcdb47f096a5c5973f491ecbf12d26230e21221dc (patch)
treed1bd8b06ad003d928de15bf3275bc6c67a6d7cd1 /sysdeps/powerpc/ffs.c
parent70b7101f6e8d81d806e38da0ca76ce3ac40137bd (diff)
downloadglibc-cdb47f096a5c5973f491ecbf12d26230e21221dc.tar
glibc-cdb47f096a5c5973f491ecbf12d26230e21221dc.tar.gz
glibc-cdb47f096a5c5973f491ecbf12d26230e21221dc.tar.bz2
glibc-cdb47f096a5c5973f491ecbf12d26230e21221dc.zip
Update.
1998-08-09 22:32 Ulrich Drepper <drepper@cygnus.com> * sysdeps/powerpc/ffs.c: Fix typo. Add support for ffsl. Patch by Matt McLean <keys@yikes.com>.
Diffstat (limited to 'sysdeps/powerpc/ffs.c')
-rw-r--r--sysdeps/powerpc/ffs.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sysdeps/powerpc/ffs.c b/sysdeps/powerpc/ffs.c
index fb1b2f4592..01d5f743a0 100644
--- a/sysdeps/powerpc/ffs.c
+++ b/sysdeps/powerpc/ffs.c
@@ -18,8 +18,13 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#define ffsl __something_else
#include <string.h>
+#undef ffs
+
+#ifdef __GNUC__
+
int
__ffs (int x)
{
@@ -29,4 +34,9 @@ __ffs (int x)
return 32 - cnt;
}
weak_alias (__ffs, ffs)
-weak_alais (__ffs, ffsl)
+#undef ffsl
+weak_alias (__ffs, ffsl)
+
+#else
+#include <sysdeps/generic/ffs.c>
+#endif