[M3devel] how division and modulo work in hand.c?

Tony Hosking hosking at cs.purdue.edu
Sun Jan 17 22:19:21 CET 2010


It calls the C routines in hand.c.

Sent from my iPhone

On Jan 17, 2010, at 2:48 PM, hendrik at topoi.pooq.com wrote:

> On Sun, Jan 17, 2010 at 11:39:03AM -0500, Tony Hosking wrote:
>>
>> This is a quote from the gcc internals manual.  I've always wondered
>> why cm3cg uses the built-in FLOOR_DIV_EXPR/FLOOR_MOD_EXPR only for
>> known positive operands.  What would be wrong about using them also
>> for negative operands?
>
> What does cm3cg use for operands that are not known to be positive?
>
> -- hendrik



More information about the M3devel mailing list