• Andrew Morton's avatar
    [PATCH] bitmap parsing/printing routines, version 4 · 29d82b14
    Andrew Morton authored
    From: Joe Korty <joe.korty@ccur.com>
    
    1) the version in 2.6.1 is broken, doesn't work on 64bit big endian
       machines at all.  This needed fixing.  I thought it best to fix by
       rewriting the printer/parser with an algorithm that is naturally endian &
       sizeof(long) resistant.
    
    2) I wanted all digits to print, eg, 0000ffff,00000004 not ffff,4.
    
    3) I wanted exactly NR_CPUS bits to print (or whatever the bitmap size is
       in bits, and not have what is displayed rounded up to the nearest full
       byte, as the current version did.
    
    4) The bitmap printer and parser should be part of bitmap.[ch] with syntax
       and semantics to match.  The original lib/mask.c versions did not
       recognize this commonality.
    29d82b14
Makefile 745 Bytes