round around 0.5

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2019-10-17 13:44:30 +03:00
parent 902c497ab0
commit 9d16f47ca4

View File

@ -399,7 +399,7 @@ VOID GetCPUProperties (VOID)
if (Num && Denom) {
gCPUStructure.ARTFrequency = DivU64x32(MultU64x32(gCPUStructure.TSCCalibr, Denom), Num);
DBG(" Calibrated ARTFrequency: %lld\n", gCPUStructure.ARTFrequency);
UINT64 Stokg = DivU64x32(gCPUStructure.ARTFrequency + 99999, 100000);
UINT64 Stokg = DivU64x32(gCPUStructure.ARTFrequency + 49999, 100000);
gCPUStructure.ARTFrequency = MultU64x32(Stokg, 100000);
DBG(" Rounded ARTFrequency: %lld\n", gCPUStructure.ARTFrequency);
}