Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49736 )
Change subject: types.h: Add a helper macro BITS_PER_BYTE ......................................................................
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 --- M src/include/types.h 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/49736/1
diff --git a/src/include/types.h b/src/include/types.h index 2d10ae4..cbdb67a 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 */