summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2021-01-19 22:13:59 -0800
committerPatrick Georgi <pgeorgi@google.com>2021-01-22 14:26:58 +0000
commit197c486997130e7f1510aac3f0af90f35b50c9d2 (patch)
tree2a2ebd2d4ea92916924e8dfd204fe9272c13497e /src
parentb5df56f6f20d075a86267cc3a00f2ff818ea1bc2 (diff)
types.h: Add a helper macro BITS_PER_BYTE
This change adds a helper macro `BITS_PER_BYTE` so that it doesn't have to be defined in multiple places. Change-Id: Idc344047a5660791eaeb1ce8012910c11f6010ba Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49736 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/types.h b/src/include/types.h
index 2d10ae483a..cbdb67a0ca 100644
--- a/src/include/types.h
+++ b/src/include/types.h
@@ -18,4 +18,6 @@
#define BIT(x) (1ul << (x))
#endif
+#define BITS_PER_BYTE 8
+
#endif /* __TYPES_H */