summaryrefslogtreecommitdiff
path: root/libvmon/bitmap.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-08-28 00:36:53 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:14:31 -0700
commit4642216f70dd98134a79f9299b7ca4bc876649c7 (patch)
treebdf9fd892bc54a2f2a678a9828c6af9d9fc8bed2 /libvmon/bitmap.h
parente99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff)
*: refactor all the things
Long overdue house cleaning. The addition of compositing/monitoring overlays in vwm3 pushed vwm well past what is a reasonable size for a simple thousand line file. This is a first step towards restoring sanity in the code, but no behavioral differences are intended, this is mostly just shuffling around and organizing code. I expect some performance regressions initially, follow-on commits will make more improvements to that end as the dust settles.
Diffstat (limited to 'libvmon/bitmap.h')
-rw-r--r--libvmon/bitmap.h15
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
© All Rights Reserved