From b8b84ae26ce60049b742642aa15535f87d5d8ec3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 9 Mar 1998 09:09:46 +0000 Subject: [PATCH] Rename function to __ffs and make ffs a weak alias. --- sysdeps/alpha/ffs.S | 5 +++-- sysdeps/am29k/ffs.c | 3 ++- sysdeps/i960/ffs.c | 3 ++- sysdeps/m68k/ffs.c | 3 ++- sysdeps/m88k/ffs.c | 3 ++- sysdeps/rs6000/ffs.c | 3 ++- sysdeps/vax/ffs.s | 3 ++- 7 files changed, 15 insertions(+), 8 deletions(-) diff --git a/sysdeps/alpha/ffs.S b/sysdeps/alpha/ffs.S index 23dff6e06b..6eb3afdff7 100644 --- a/sysdeps/alpha/ffs.S +++ b/sysdeps/alpha/ffs.S @@ -25,7 +25,7 @@ .set noreorder .set noat -ENTRY(ffs) +ENTRY(__ffs) #ifdef PROF ldgp gp, 0(pv) lda AT, _mcount @@ -69,4 +69,5 @@ ENTRY(ffs) $done: ret - END(ffs) + END(__ffs) +weak_alias (__ffs, ffs) diff --git a/sysdeps/am29k/ffs.c b/sysdeps/am29k/ffs.c index fe656e1697..bccec883df 100644 --- a/sysdeps/am29k/ffs.c +++ b/sysdeps/am29k/ffs.c @@ -26,7 +26,7 @@ #ifdef __GNUC__ int -ffs (x) +__ffs (x) int x; { int cnt; @@ -35,6 +35,7 @@ ffs (x) return 32 - cnt; } +weak_alias (__ffs, ffs) #else #include diff --git a/sysdeps/i960/ffs.c b/sysdeps/i960/ffs.c index 7846c4b1db..dc09ba90e8 100644 --- a/sysdeps/i960/ffs.c +++ b/sysdeps/i960/ffs.c @@ -27,7 +27,7 @@ #if defined (__GNUC__) && defined (__i960__) int -ffs (x) +__ffs (x) int x; { int cnt; @@ -36,6 +36,7 @@ ffs (x) return cnt; } +weak_alias (__ffs, ffs) #else diff --git a/sysdeps/m68k/ffs.c b/sysdeps/m68k/ffs.c index 26044b12ec..d30bd9d6ff 100644 --- a/sysdeps/m68k/ffs.c +++ b/sysdeps/m68k/ffs.c @@ -26,7 +26,7 @@ #if defined (__GNUC__) && defined (__mc68020__) int -ffs (x) +__ffs (x) int x; { int cnt; @@ -35,6 +35,7 @@ ffs (x) return 32 - cnt; } +weak_alias (__ffs, ffs) #else diff --git a/sysdeps/m88k/ffs.c b/sysdeps/m88k/ffs.c index 3658f0882d..7aac897735 100644 --- a/sysdeps/m88k/ffs.c +++ b/sysdeps/m88k/ffs.c @@ -26,7 +26,7 @@ #ifdef __GNUC__ int -ffs (x) +__ffs (x) int x; { int cnt; @@ -37,6 +37,7 @@ ffs (x) asm ("ff1 %0,%1" : "=r" (cnt) : "r" (x & -x)); return cnt + 1; } +weak_alias (__ffs, ffs) #else #include 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 diff --git a/sysdeps/vax/ffs.s b/sysdeps/vax/ffs.s index 49faffb060..9f7ebc95fe 100644 --- a/sysdeps/vax/ffs.s +++ b/sysdeps/vax/ffs.s @@ -39,10 +39,11 @@ #include "DEFS.h" -ENTRY(ffs, 0) +ENTRY(__ffs, 0) ffs $0,$32,4(ap),r0 bneq 1f mnegl $1,r0 1: incl r0 ret +weak_alias (__ffs, ffs)