Re: [edk2] [PATCH v3 12/12] UefiCpuPkg: Refine casting expression result to bigger size

2017-02-26 Thread Fan, Jeff
Reviewed-by: Jeff Fan -Original Message- From: Wu, Hao A Sent: Saturday, February 25, 2017 1:13 PM To: edk2-devel@lists.01.org Cc: Wu, Hao A; Fan, Jeff Subject: [PATCH v3 12/12] UefiCpuPkg: Refine casting expression result to bigger size There are cases that the

[edk2] [PATCH v3 12/12] UefiCpuPkg: Refine casting expression result to bigger size

2017-02-24 Thread Hao Wu
There are cases that the operands of an expression are all with rank less than UINT64/INT64 and the result of the expression is explicitly cast to UINT64/INT64 to fit the target size. An example will be: UINT32 a,b; // a and b can be any unsigned int type with rank less than UINT64, like //