Removing dependency to libgcc_s.so

Rich Felker dalias at aerifal.cx
Mon Jul 24 05:59:08 PDT 2006


On Mon, Jul 24, 2006 at 12:38:10PM +0200, Michael Hunold wrote:
> Hi Rob,
> 
> on 22.07.2006 20:57 Rob Landley said the following:
> > On Friday 21 July 2006 8:56 am, Michael Hunold wrote:
> >> Is removing the dependency to libgcc a good thing to do?
> 
> > Yes.  What does your patch look like?
> 
> Very simple. It uses a loop and substract 64bit division I found on the
> net. I attached the patch to this mail.

Um, this works but incredibly slow. Why not optimize the case (that
occurs 100% of the time in practice) where the denominator is 32 bits
or less and you can just do 2 32bit divides and only use this horribly
slow code when the denominator is truely 64bit?

Rich



More information about the busybox mailing list