1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* string/test-ffs.c: Also test ffsl and ffsll.

	* sysdeps/powerpc/ffs.c: Don't define ffsl for ppc64.
This commit is contained in:
Ulrich Drepper
2004-04-04 05:53:24 +00:00
parent ecb2b2fb8a
commit 4e73e1151d
5 changed files with 33 additions and 15 deletions

View File

@ -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 <limits.h>
#include <string.h>
#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 <sysdeps/generic/ffs.c>