Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw: Calculate tick/nsec conversions using 128-bit multiplication
Calculate tick to nsec / nsec to tick conversions using 128-bit multiplication. This avoids overflows, and in the case of converting nanoseconds to PIT ticks is also slightly faster as it does not use division.
- Loading branch information
Showing
1 changed file
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters