View Single Post
Old 18 June 2013, 19:14   #2
demolition
Unregistered User
demolition's Avatar
 
Join Date: Sep 2012
Location: Copenhagen / DK
Age: 38
Posts: 3,763
The only thing I spot is on line 21 where you do an (int) cast. This is the same as a floor, so I'd add 0.5 to that line:
Code:
mt_PeriodTable[(i * 37) + j] = (int)(0.5+(1.0 / fr / pclk) / 16.0);
Not sure if this is what you meant by floor(val+0.5).
demolition is offline  
 
Page generated in 0.04036 seconds with 11 queries