[lkml]   [2001]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] search_one_table()
On Tue, 2001-11-13 at 17:32, Per Persson wrote:
> - mid = (last - first) / 2 + first;
> + mid = (last + first) / 2

Ehh, maybe its my scientific computer side talking, but your change will
overflow. Adding two addresses can certainly return an address larger
than 0xffffffff, so you see formulas like the above.

Robert Love

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.068 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site