Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/arch



On Fri, Oct 26, 2007 at 01:24:47PM +0000, Joerg Sonnenberger wrote:

> Log Message:
> Match delay/DELAY on x86 with delay(9). It takes an unsigned int as
> argument. Use this and replace the inline assembly (mul + div using the
> 64bit intermediate result) with normal 32bit multiplication and
> division. The compiler can turn the division into a multiplication and
> shift, making it even cheaper then the original assembly. For extreme
> long delays, just use 64bit arithmetic.

A DIAGNOSTIC kernel should probably panic on a very long delay..

Andrew



Home | Main Index | Thread Index | Old Index