diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-08-09 22:34:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-08-09 22:34:19 +0000 |
commit | cdb47f096a5c5973f491ecbf12d26230e21221dc (patch) | |
tree | d1bd8b06ad003d928de15bf3275bc6c67a6d7cd1 /sysdeps/powerpc/ffs.c | |
parent | 70b7101f6e8d81d806e38da0ca76ce3ac40137bd (diff) | |
download | glibc-cdb47f096a5c5973f491ecbf12d26230e21221dc.zip glibc-cdb47f096a5c5973f491ecbf12d26230e21221dc.tar.gz glibc-cdb47f096a5c5973f491ecbf12d26230e21221dc.tar.bz2 |
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.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sysdeps/powerpc/ffs.c b/sysdeps/powerpc/ffs.c index fb1b2f4..01d5f74 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 |