if (old_val_CORE[ii] > new_val_CORE[ii]) { //handle overflow
CPU_CLK_UNHALTED_CORE = (UINT64_MAX - old_val_CORE[ii]) + new_val_CORE[ii];
may be corrected by
if (old_val_CORE[ii] > new_val_CORE[ii]) { //handle overflow
CPU_CLK_UNHALTED_CORE = (UINT64_MAX - new_val_CORE[ii]) + old_val_CORE[ii];
I'm programming XFreq and this is the formula which gives me good results when
showing Turbo.
blog.cyring.fr
Original issue reported on code.google.com by cyril.in...@gmail.com on 17 Feb 2014 at 6:02
Original issue reported on code.google.com by
cyril.in...@gmail.com
on 17 Feb 2014 at 6:02