Re: Linux 3.1-rc9

From: H. Peter Anvin
Date: Mon Oct 17 2011 - 16:36:04 EST


On 10/17/2011 11:49 AM, Ingo Molnar wrote:
> Do we have some hard data on this, which we could put into comments
> in include/linux/ktime.h and such? Older versions of GCC used to do a
> bad job of long long handling on 32-bit systems - that might be a
> factor in the performance figures.
>
> But i suspect you are right that the cost is still very much there

64/64 division is done bit by bit on most (all?) 32-bit architectures.

64/32 division can be done in hardware on some architectures, e.g. x86.

-hpa
--
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/