mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* string/test-ffs.c: Also test ffsl and ffsll. * sysdeps/powerpc/ffs.c: Don't define ffsl for ppc64.
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user