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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Soumyadip Das Mahapatra <soumya.linux@...>
Cc: <peterz@...>, <linux-kernel@...>
Date: Thursday, July 17, 2008 - 2:00 pm

On Wed, Jul 16, 2008 at 06:05:56PM -0400, Lennart Sorensen wrote:
This line overflows while the result is good if changed to:
 		if(((unsigned long long)m * (unsigned long long)m) > (unsigned long long)x)

Perhaps there is a better way to do this.


-- 
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/i..., Soumyadip Das Mahapatra, (Wed Jul 16, 5:35 pm)
Re: [PATCH] : A better approach to compute int_sqrt in lib/i..., Lennart Sorensen, (Thu Jul 17, 2:00 pm)