diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 01:23:54 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 01:23:54 (EDT) |
commit | caa24987c48bcdae57d08f70b0c5ee9089c13e54 (patch) | |
tree | cdddd83a46fe6342031ec5b4f09979113519e2bb | |
parent | 730082432a6b03636d28eb8c16fe5fbb7e279466 (diff) |
src/font.c: Reduce spacing in macro definitions
-rw-r--r-- | src/font.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -29,12 +29,12 @@ #include <linux/font.h> #include "image.h" -#define BIT_TO_BYTE(i) ((i) / CHAR_BIT) -#define BITS_TO_BYTES(i) BIT_TO_BYTE((i) + CHAR_BIT - 1) -#define BIT_BYTE_SHIFT(i) (CHAR_BIT - 1 - ((i) % CHAR_BIT)) -#define FONT_H(f) ((size_t) (f)->desc.height) -#define FONT_W(f) ((size_t) (f)->desc.width) -#define FONT_W_BYTES(f) BITS_TO_BYTES(FONT_W(f)) +#define BIT_TO_BYTE(i) ((i) / CHAR_BIT) +#define BITS_TO_BYTES(i) BIT_TO_BYTE((i) + CHAR_BIT - 1) +#define BIT_BYTE_SHIFT(i) (CHAR_BIT - 1 - ((i) % CHAR_BIT)) +#define FONT_H(f) ((size_t) (f)->desc.height) +#define FONT_W(f) ((size_t) (f)->desc.width) +#define FONT_W_BYTES(f) BITS_TO_BYTES(FONT_W(f)) struct font { const struct font_desc desc; |