]> git.hungrycats.org Git - linux/commit
[PATCH] bitmap parsing/printing routines, version 4
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:40:05 +0000 (18:40 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:40:05 +0000 (18:40 -0800)
commit29d82b14a433fcba36b7cc062271225976355eaf
treedde75472f3e859833e66e9ebbdcf65794a059a81
parentbfff273c077ade79e08fe16138a5db3a7e89ef6b
[PATCH] bitmap parsing/printing routines, version 4

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.
include/linux/bitmap.h
include/linux/cpumask.h
lib/Makefile
lib/bitmap.c
lib/mask.c [deleted file]