On Tue, Apr 12, 2016 at 9:01 PM, Guenter Roeck <[email protected]> wrote: > On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: >> On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee >> <[email protected]> wrote: >> > On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: >> >>
> Sorry, I am missing something. do_div() should work fine with any 32 bit value > as divisor, no matter what that value is. Why does it fail here ? And why does > it work if I pass 0x1fffff as second parameter to do_div() directly ? Perhaps compare assembly code in both cases? -- With Best Regards, Andy Shevchenko

