From 18bc92cb83fdf0f0472432fb7c30914a9cd4df01 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Mar 2015 21:08:54 -0400 Subject: libiberty: remove source files that either duplicate functionality already present in all modern libc implementations, or are incompatible with modern development environments, or both. --- libiberty/ffs.c | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 libiberty/ffs.c (limited to 'libiberty/ffs.c') diff --git a/libiberty/ffs.c b/libiberty/ffs.c deleted file mode 100644 index 603cbe8ed..000000000 --- a/libiberty/ffs.c +++ /dev/null @@ -1,26 +0,0 @@ -/* ffs -- Find the first bit set in the parameter - -@deftypefn Supplemental int ffs (int @var{valu}) - -Find the first (least significant) bit set in @var{valu}. Bits are -numbered from right to left, starting with bit 1 (corresponding to the -value 1). If @var{valu} is zero, zero is returned. - -@end deftypefn - -*/ - -int -ffs (register int valu) -{ - register int bit; - - if (valu == 0) - return 0; - - for (bit = 1; !(valu & 1); bit++) - valu >>= 1; - - return bit; -} - -- cgit v1.2.3