Re: from where comes "__moddi3"?

From: Peter Zijlstra
Date: Sat Jul 21 2007 - 16:01:27 EST


On Sat, 2007-07-21 at 21:58 +0200, Jan-Benedict Glaw wrote:
> On Sat, 2007-07-21 21:31:13 +0200, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> > On Sat, 2007-07-21 at 15:21 -0400, Robert P. J. Day wrote:
> >
> > use do_div().
> >
> > 16 works because gcc translates that into a right shift.
>
> Right shift? Doesn't it just mask out everything but the low 4 bit?

Yeah, its bitwise and for modulo and shifts for mult and div.

Silly mistake on my side.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/