diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2016-09-09 14:20:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-09 14:20:28 -0700 |
commit | a1aba8e0fe5c94ebf04258b609666c92b756954f (patch) | |
tree | fe9792b77766e31728b1d2d04d2461858ef45443 /libvmon/bitmap.h | |
parent | e99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff) | |
parent | 8ef5fccc1ad2f5acb5530a438de631153e4ad945 (diff) |
Merge pull request #6 from vcaputo/clean_house
House cleaning
Diffstat (limited to 'libvmon/bitmap.h')
-rw-r--r-- | libvmon/bitmap.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libvmon/bitmap.h b/libvmon/bitmap.h deleted file mode 100644 index eacb97d..0000000 --- a/libvmon/bitmap.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef _BITMAP_H -#define _BITMAP_H - -/* simple implementation of general-purpose bitmap macros taken from the comp.lang.c FAQ */ - -#include <limits.h> /* for CHAR_BIT */ - -#define BITMASK(b) (1 << ((b) % CHAR_BIT)) -#define BITSLOT(b) ((b) / CHAR_BIT) -#define BITSET(a, b) ((a)[BITSLOT(b)] |= BITMASK(b)) -#define BITCLEAR(a, b) ((a)[BITSLOT(b)] &= ~BITMASK(b)) -#define BITTEST(a, b) ((a)[BITSLOT(b)] & BITMASK(b)) -#define BITNSLOTS(nb) ((nb + CHAR_BIT - 1) / CHAR_BIT) - -#endif |