Re: [PATCH] Kill div64.h dupes, parenthesize do_div() macro params

Russell King (rmk@arm.linux.org.uk)
Wed, 2 Jul 2003 08:53:02 +0100


On Wed, Jul 02, 2003 at 05:15:17AM +0200, Bernardo Innocenti wrote:
> What's worse, it has different semantics on different architectures:

Any arch which does 32/32 -> 32q + 32r will break in the new time code;
it certainly did for ARM. do_div must now be a 64/32 -> 64q + 32r
implementation.

> arm 64/32 -> 64q + 32r (asm function call)
> arm26 32/32 -> 32q + 32r (generic)

arm26 needs fixing in the same way arm recently was.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

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