Re: [PATCH] : A better approach to compute int_sqrt in lib/int_sqrt.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lennart Sorensen
Date: Thursday, July 17, 2008 - 11:10 am

On Wed, Jul 16, 2008 at 02:35:56PM -0700, Soumyadip Das Mahapatra wrote:

So so far the line:
        if((m * m) > x)
overflows easily in which case the result is wrong.

Also at least on my Athlon 2500, this new algorithm takes 3.5 times
longer than the old one to get result when doing all square roots from 0
to 200000000, which is no improvement.

-- 
Len Sorensen
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] : A better approach to compute int_sqrt in lib ..., Soumyadip Das Mahapatra, (Wed Jul 16, 2:35 pm)
Re: [PATCH] : A better approach to compute int_sqrt in lib ..., Lennart Sorensen, (Thu Jul 17, 11:00 am)
Re: [PATCH] : A better approach to compute int_sqrt in lib ..., Lennart Sorensen, (Thu Jul 17, 11:10 am)