summaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-04-04 12:17:24 +0000
committerBernhard Reutner-Fischer2006-04-04 12:17:24 +0000
commitdee811a53d01da01b22fc69ec21c5001097ad9a2 (patch)
treed10bd58a238cca941eca15ac5b6fe98f8a0dc4e3 /e2fsprogs/ext2fs
parent89aaf4e2490c6ada5d10f336a7e2322f8e4232ae (diff)
downloadbusybox-dee811a53d01da01b22fc69ec21c5001097ad9a2.zip
busybox-dee811a53d01da01b22fc69ec21c5001097ad9a2.tar.gz
- remove unused ext2fs_find_first_bit_set() and ext2fs_find_next_bit_set()
Diffstat (limited to 'e2fsprogs/ext2fs')
-rw-r--r--e2fsprogs/ext2fs/ext2fs_inline.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/e2fsprogs/ext2fs/ext2fs_inline.c b/e2fsprogs/ext2fs/ext2fs_inline.c
index d670065..1202b35 100644
--- a/e2fsprogs/ext2fs/ext2fs_inline.c
+++ b/e2fsprogs/ext2fs/ext2fs_inline.c
@@ -179,51 +179,6 @@ __u32 ext2fs_swab32(__u32 val)
((val<<8)&0xFF0000) | (val<<24));
}
-int ext2fs_find_first_bit_set(void * addr, unsigned size)
-{
- unsigned char *cp = (unsigned char *) addr;
- int res = 0, d0;
-
- if (!size)
- return 0;
-
- while ((size > res) && (*cp == 0)) {
- cp++;
- res += 8;
- }
- d0 = ffs(*cp);
- if (d0 == 0)
- return size;
-
- return res + d0 - 1;
-}
-
-int ext2fs_find_next_bit_set (void * addr, int size, int offset)
-{
- unsigned char * p;
- int set = 0, bit = offset & 7, res = 0, d0;
-
- res = offset >> 3;
- p = ((unsigned char *) addr) + res;
-
- if (bit) {
- set = ffs(*p & ~((1 << bit) - 1));
- if (set)
- return (offset & ~7) + set - 1;
- p++;
- res += 8;
- }
- while ((size > res) && (*p == 0)) {
- p++;
- res += 8;
- }
- d0 = ffs(*p);
- if (d0 == 0)
- return size;
-
- return (res + d0 - 1);
-}
-
int ext2fs_test_generic_bitmap(ext2fs_generic_bitmap bitmap,
blk_t bitno);