mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
HV: treewide: convert suffix ULL to UL
It is already assumed that ''long'' has 8-bytes, and thus there is no need to use ULL to indicate a 8-byte unsigned constant. This patch changes all ULL suffixes found in the hypervisor to UL. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -96,7 +96,7 @@ int udiv64(uint64_t dividend, uint64_t divisor, struct udiv_result *res)
|
||||
/* align divisor and dividend. */
|
||||
bits = clz64(divisor) - clz64(dividend);
|
||||
divisor <<= bits;
|
||||
mask = 1ULL << bits;
|
||||
mask = 1UL << bits;
|
||||
/* division loop */
|
||||
do {
|
||||
if (dividend >= divisor) {
|
||||
|
@@ -273,7 +273,7 @@ static int print_pow2(struct print_param *param,
|
||||
int ret;
|
||||
|
||||
/* calculate mask */
|
||||
mask = (1ULL << shift) - 1;
|
||||
mask = (1UL << shift) - 1;
|
||||
|
||||
/* determine digit translation table */
|
||||
digits = ((param->vars.flags & PRINT_FLAG_UPPER) != 0) ?
|
||||
@@ -469,7 +469,7 @@ int do_print(const char *fmt, struct print_param *param,
|
||||
|
||||
/* initialize the variables for the next argument */
|
||||
memset(&(param->vars), 0, sizeof(param->vars));
|
||||
param->vars.mask = 0xFFFFFFFFFFFFFFFFULL;
|
||||
param->vars.mask = 0xFFFFFFFFFFFFFFFFUL;
|
||||
|
||||
/*
|
||||
* analyze the format specification:
|
||||
|
Reference in New Issue
Block a user