Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
waste_cpu_cycles: Use a more deterministic loop body
Previous implementation based on ldexp() was not always giving consistent results from one run to another. Using more basic operations without extra branches makes the execution time of the body much more predictable, leading to more stable calibration values and precise reproduction of duty cycles. Signed-off-by: Douglas RAILLARD <[email protected]>
- Loading branch information