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

From: Bernardo Innocenti (
Date: Wed Jul 02 2003 - 02:02:05 EST

On Wednesday 02 July 2003 07:09, Linus Torvalds wrote:

> > Why 64-bit divides in particular were victimised in this manner is a
> > matter for speculation ;)
> Because gcc historically _cannot_ generate an efficient 64/32->64
> divide. It ends up doing a full 64/64 divide thing.

 You're right here. I've been too quick in putting my faith in gcc ;-)

 Shouldn't we complain to the gcc people? The 64/32 division is a
rather common operation in many applications besides the kernel, so
you'd expect gcc to get it right without polluting every single
project with reimplementations of do_div().

  // Bernardo Innocenti - Develer S.r.l., R&D dept.

Please don't send Word attachments -

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

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