• Andrew Morton's avatar
    [PATCH] cpumask: bitmap inlining and optimizations · d6cf71d3
    Andrew Morton authored
    From: Paul Jackson <pj@sgi.com>
    
    These bitmap improvements make it a suitable basis for fully supporting
    cpumask_t and nodemask_t.  Inline macros with compile-time checks enable
    generating tight code on both small and large systems (large meaning cpumask_t
    requires more than one unsigned long's worth of bits).
    
    The existing bitmap_<op> macros in lib/bitmap.c are renamed to __bitmap_<op>,
    and wrappers for each bitmap_<op> are exposed in include/linux/bitmap.h
    
    This patch _includes_ Bill Irwins rewrite of the bitmap_shift operators to not
    require a fixed length intermediate bitmap.
    
    Improved comments list each available operator for easy browsing.
    Signed-off-by: default avatarPaul Jackson <pj@sgi.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    d6cf71d3
bitmap.c 10.8 KB