• Akinobu Mita's avatar
    [PATCH] bitops: generic find_{next,first}{,_zero}_bit() · c7f612cd
    Akinobu Mita authored
    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);
    
    In include/asm-generic/bitops/find.h
    
    This code largely copied from: arch/powerpc/lib/bitops.c
    Signed-off-by: default avatarAkinobu Mita <mita@miraclelinux.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    c7f612cd
find.h 481 Bytes