sign type conversion work

This commit is contained in:
Jonathan Campbell
2018-05-30 14:26:15 -07:00
parent 3ef35c2067
commit 4cba8874d6
3 changed files with 80 additions and 80 deletions

View File

@@ -3,9 +3,9 @@
#define _UTIL_UNITS_H
/* useful unit macros for constants */
#define _KB_bytes(x) ((x) << 10UL)
#define _MB_bytes(x) ((x) << 20UL)
#define _GB_bytes(x) ((x) << 30UL)
#define _KB_bytes(x) (((Bitu)x) << (Bitu)10UL)
#define _MB_bytes(x) (((Bitu)x) << (Bitu)20UL)
#define _GB_bytes(x) (((Bitu)x) << (Bitu)30UL)
#endif /* _UTIL_UNITS_H */