From 4e73e1151d457981323a7316861a2493a57dbc6c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 4 Apr 2004 05:53:24 +0000 Subject: Update. * string/test-ffs.c: Also test ffsl and ffsll. * sysdeps/powerpc/ffs.c: Don't define ffsl for ppc64. --- sysdeps/powerpc/ffs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/powerpc/ffs.c b/sysdeps/powerpc/ffs.c index 60f7460886..b2b7b7c071 100644 --- a/sysdeps/powerpc/ffs.c +++ b/sysdeps/powerpc/ffs.c @@ -1,6 +1,6 @@ /* Find first set bit in a word, counted from least significant end. For PowerPC. - Copyright (C) 1991, 1992, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1991, 1992, 1997, 1998, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Torbjorn Granlund (tege@sics.se). @@ -20,6 +20,7 @@ 02111-1307 USA. */ #define ffsl __something_else +#include #include #undef ffs @@ -35,8 +36,10 @@ __ffs (int x) return 32 - cnt; } weak_alias (__ffs, ffs) +#if ULONG_MAX == UINT_MAX #undef ffsl weak_alias (__ffs, ffsl) +#endif #else #include -- cgit 1.4.1