View Single Post
Old 30 May 2011, 15:15   #8
MSL
Registered User
 
Join Date: Feb 2009
Location: Copenhagen / Denmark
Posts: 11
I'm not experienced with asm, so I might not understand your code correctly, but from what it looks like to me is, that you divide D1 with D2, where D2 is a division of 35469/160, which have a remainder.

The math can be rewritten:

A / (B / C) = (A * C) / B -> ( D1 * 160 ) / 35469

Assuming that A * C does not overflow you have removed the imprecision of one division.

Last edited by MSL; 30 May 2011 at 15:21. Reason: Spelling mistake
MSL is offline  
 
Page generated in 0.04054 seconds with 11 queries