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:
Junjie Mao
2018-06-26 19:57:53 +08:00
committed by Xie, nanlin
parent 9beb1b92b5
commit 392542310f
4 changed files with 6 additions and 7 deletions

View File

@@ -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) {

View File

@@ -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: