introduce GiB and MiB macros
This macros convert from GiB or MiB into bytes. Sponsored by: Citrix Systems R&D
This commit is contained in:
parent
2c385d51ce
commit
319cc4a700
@ -362,4 +362,8 @@ __END_DECLS
|
||||
*/
|
||||
#define __PAST_END(array, offset) (((__typeof__(*(array)) *)(array))[offset])
|
||||
|
||||
/* Unit conversion macros. */
|
||||
#define GiB(v) (v ## ULL << 30)
|
||||
#define MiB(v) (v ## ULL << 20)
|
||||
|
||||
#endif /* _SYS_PARAM_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user