Re: [PATCH] Fix do_div() for all architectures

From: Richard Henderson (rth@twiddle.net)
Date: Thu Jul 10 2003 - 10:40:19 EST


On Tue, Jul 08, 2003 at 08:27:26PM +0200, Bernardo Innocenti wrote:
> +extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor)
> __attribute_pure__;
...
> + __rem = __div64_32(&(n), __base); \

The pure declaration is very incorrect. You're writing to N.

r~
-
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/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:35 EST