Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The floorMod and subtraction by 0.5 can be done before converting to double, and the division by 1024 may be converted to a simple multiplication. At this point, the result is exactly the same. However, to remove the extra multiplication by 0.9, it can be moved into the multiplication by 1/1024. This may affect the result to one ULP, but I do not forsee that causing any problems.
- Loading branch information