summaryrefslogtreecommitdiff
path: root/libiberty/ffs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/ffs.c')
-rw-r--r--libiberty/ffs.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/libiberty/ffs.c b/libiberty/ffs.c
deleted file mode 100644
index 8ffb03e7c5e..00000000000
--- a/libiberty/ffs.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* ffs -- Find the first bit set in the parameter
-
-NAME
- ffs -- Find the first bit set in the parameter
-
-SYNOPSIS
- int ffs (int valu)
-
-DESCRIPTION
- Find the first bit set in the parameter. Bits are numbered from
- right to left, starting with bit 1.
-
-*/
-
-int
-ffs (valu)
- register int valu;
-{
- register int bit;
-
- if (valu == 0)
- return 0;
-
- for (bit = 1; !(valu & 1); bit++)
- valu >>= 1;
-
- return bit;
-}
-