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)) {
|
if (!(best_dusec > 0)) {
|
||||||
CROAK("best_dusec should be positive");
|
CROAK("best_dusec should be positive");
|
||||||
}
|
}
|
||||||
|
precision_quantum = best_dusec * 1.0e-6;
|
||||||
precision_log = 0;
|
precision_log = 0;
|
||||||
while (best_dusec < 500000) {
|
while (best_dusec < 500000) {
|
||||||
precision_log--;
|
precision_log--;
|
||||||
best_dusec *= 2;
|
best_dusec *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
precision_quantum = 1.0 / (double)(1<<(-precision_log));
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue