mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 02:31:05 +00:00
cryptodisk: Add macro GRUB_TYPE_BITS() to replace some literals
The new macro GRUB_TYPE_BITS(type) returns the number of bits allocated for type. Signed-off-by: Glenn Washburn <development@efficientek.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
40abe8576a
commit
3e5f7f5112
2 files changed
+6
-3
No files matched your search
@@ -80,6 +80,8 @@
|
||||
# define GRUB_CHAR_BIT __CHAR_BIT__
|
||||
#endif
|
||||
|
||||
#define GRUB_TYPE_BITS(type) (sizeof(type) * GRUB_CHAR_BIT)
|
||||
|
||||
/* Define various wide integers. */
|
||||
typedef signed char grub_int8_t;
|
||||
typedef short grub_int16_t;
|
||||
|
||||
Reference in new issue
Block a user