From 197c486997130e7f1510aac3f0af90f35b50c9d2 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 19 Jan 2021 22:13:59 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/49736 Tested-by: build bot (Jenkins) Reviewed-by: EricR Lai Reviewed-by: Tim Wawrzynczak --- src/include/types.h | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- cgit v1.2.3