
14 Mar
2011
14 Mar
'11
9:22 p.m.
On Wed, 2011-02-23 at 11:35 -0500, Kyle Moffett wrote:
* Now divide by 5^12 and track the 32-bit remainder, then divide
* by 2*(2^12) using shifts (and updating the remainder).
*/
- clks_rem = do_div(clks, UL_5pow12);
- clks_rem <<= 13;
Shouldn't this be clks_rem >>= 13 ?
- clks_rem |= clks & (UL_2pow13-1);
- clks >>= 13;
- /* If we had a remainder, then round up */
- if (clks_rem) clks++;
- }
York