Don't set system precision to log2 based value
This commit is contained in:
parent
441e42c276
commit
10c9a7d4b7
1 changed files with 1 additions and 2 deletions
3
local.c
3
local.c
|
@ -123,14 +123,13 @@ calculate_sys_precision(void)
|
|||
if (!(best_dusec > 0)) {
|
||||
CROAK("best_dusec should be positive");
|
||||
}
|
||||
precision_quantum = best_dusec * 1.0e-6;
|
||||
precision_log = 0;
|
||||
while (best_dusec < 500000) {
|
||||
precision_log--;
|
||||
best_dusec *= 2;
|
||||
}
|
||||
|
||||
precision_quantum = 1.0 / (double)(1<<(-precision_log));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue