Subject: Re: boot code bloat with 64bit sector numbers
To: Ignatios Souvatzis <is@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 04/09/2003 21:16:18
On Wed, Apr 09, 2003 at 10:08:21PM +0200, Ignatios Souvatzis wrote:
> Hi,
> 
> I have some 64bit m68k divider thats slow but small ... wait...

Actually I suspect the 'schoolboy' 1 bit at a time routine would be faster
than the code we are using code - especially if written in assembler.

The code we have is trying to do multiple bits per iteration,
IIRC it doesn't even have the obvious optimisation to use the cpus
divide instruction (should it have one) when it would work.

I suspect the asm loop I used to use to get an 8085 to do 16/16
divide would run quite quickly.  Not many instructions per interation.

	David

-- 
David Laight: david@l8s.co.uk