Re: [patch 11/44] generic find_{next,first}{,_zero}_bit()

Akinobu Mita
2006-02-07T02:02:26Z

On Mon, Feb 06, 2006 at 10:26:00AM +0000, David Howells wrote:
> Akinobu Mita <mita@miraclelinux.com> wrote:
>
> > This patch introduces the C-language equivalents of the functions below:
> >
> > unsigned logn find_next_bit(const unsigned long *addr, unsigned long size,
> > unsigned long offset);
> > unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size,
> > unsigned long offset);
> > unsigned long find_first_zero_bit(const unsigned long *addr,
> > unsigned long size);
> > unsigned long find_first_bit(const unsigned long *addr, unsigned long size);
>
> These big functions should perhaps be out of line.

Yes. I'll make them and below out of line.

- hweight*()
- ext2_find_*_zero_bit()
- minix_find_first_zero_bit()