Filewatcher File Search File Search
Content Search
» » » » »


supports multi-word bitmask operations

This Bitmask library supports multi-word bitmask operations for applications programmed in 'C'. It works in conjunction with recent Linux kernel support for processor and memory placement on multiprocessor SMP and NUMA systems. The cpuset library, being developed in parallel, depends on this bitmask library.

Bitmasks provide multi-word bit masks and operations thereon to do such things as set and clear bits, intersect and union masks, query bits, and display and parse masks.

The initial intended use for these bitmasks is to represent sets of CPUs and Memory Nodes, when configuring large SMP and NUMA systems. However there is little in the semantics of bitmasks that is specific to this particular use, and bitmasks should be usable for other purposes that had similar design requirements.

These bitmasks share the same underlying layout as the bitmasks used by the Linux kernel to represent sets of CPUs and Memory Nodes. Unlike the kernel bitmasks, these bitmasks use dynamically allocated memory and are manipulated via a pointer. This enables a program to work correctly on systems with various numbers of CPUs and Nodes, without recompilation.

There is a related cpuset library which uses the bitmask type provided here to represent sets of CPUs and Memory Nodes. The internal representation (as an array of unsigned longs, in little endian order) is directly compatible with the sched_setaffinity(2) and sched_getaffinity(2) system calls (added in Linux 2.6).

Package version:2.0-2


LIBBITMASK(3)                    SGI                   LIBBITMASK(3)

       bitmask,   bitmask_alloc,  bitmask_free,  bitmask_displayhex,
       bitmask_displaylist,   bitmask_parsehex,   bitmask_parselist,
       bitmask_copy,    bitmask_setall,    bitmask_clearall,    bit‐
       mask_nbytes,  bitmask_mask,  bitmask_nbits,   bitmask_weight,
       bitmask_isbitset,  bitmask_isbitclear,


libbitmask (2.0-2) unstable; urgency=low

  * Debian source format is 3.0 (quilt)
  * Standards version is 3.9.3
  * DH compatibility level is 9
  * Add multiarch support
  * Use hardening options
  * Fix copyright-refers-to-symlink-license
  * Fix debian-rules-missing-recommended-target
  * Fix dh-clean-k-is-deprecated

 -- Anibal Monsalve Salazar <>  Sun, 03 Jun 2012 11:39:06 +1


- 2005-07-09  Paul Jackson  <>

    * Fix parsing bitmask lists

- 2005-07-01  Paul Jackson  <>

    * More robust parsing of cpuset specifications

- 2005-04-09  Paul Jackson  <>

    * Fix broken compare in bitmask_shiftleft() causing loop
    * bitmask_displaylist of empty bitmask should product empty string
    * Fix off-by-one error in flgets() scanner
    * Do n


This package was debianized by Anibal Monsalve Salazar <> on
Mon, 25 Aug 2008 20:13

Browse inside libbitmask1_2.0-2_hurd-i386.deb

         [DIR]DEBIAN/ (5)  65535+ mirrors
         [DIR]usr/ (2)  65535+ mirrors

Download libbitmask1_2.0-2_hurd-i386.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017