From d1a4cd9bb13bfebb648203556eb9ed3fcc87355e Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Fri, 30 Dec 2016 00:15:34 +1000 Subject: [PATCH] * simplify SIMDB_BITMAP_* defines --- src/bitmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitmap.h b/src/bitmap.h index e044083..d7000ae 100644 --- a/src/bitmap.h +++ b/src/bitmap.h @@ -8,10 +8,10 @@ /** Bits per bitmap side (currently - 16) */ #define SIMDB_BITMAP_SIDE 16 -/** Bitmap size in bytes (currently - 32) */ -#define SIMDB_BITMAP_SIZE (SIMDB_BITMAP_SIDE * (SIMDB_BITMAP_SIDE / 8)) /** Total bits in bitmap (currently - 256) */ -#define SIMDB_BITMAP_BITS (SIMDB_BITMAP_SIZE * 8) +#define SIMDB_BITMAP_BITS (SIMDB_BITMAP_SIDE * SIMDB_BITMAP_SIDE) +/** Bitmap size in bytes (currently - 32) */ +#define SIMDB_BITMAP_SIZE (SIMDB_BITMAP_BITS / 8) /** placeholders for various bit states */ #define CHAR_USED '@' /**< bit is 1 */