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>
This commit is contained in:
Furquan Shaikh 2021-01-19 22:13:59 -08:00 committed by Patrick Georgi
parent b5df56f6f2
commit 197c486997
1 changed files with 2 additions and 0 deletions

View File

@ -18,4 +18,6 @@
#define BIT(x) (1ul << (x))
#endif
#define BITS_PER_BYTE 8
#endif /* __TYPES_H */