Subject: Re: 64 bit by 16 bit divide.
To: <>
From: David Laight <>
List: tech-kern
Date: 04/10/2003 12:26:12
On Thu, Apr 10, 2003 at 12:57:37PM +0200, Wojciech Puchar wrote:
> AFAIK boot loaders procedures needs to divide 64-bit value by not-as-large
> value (16-bit should be enough).

Nope, the divisions are by large values.
In particular 2^11 and 2^22 (and 2^33 for that matter).
Shift and mask are your friends here!
(what does the kernel itself do - being too lazy to look)


David Laight: