From: Robert Love <rml@tech9.net>
To: Per Persson <per.persson@gnosjo.pp.se>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] search_one_table()
Date: 13 Nov 2001 18:02:21 -0500 [thread overview]
Message-ID: <1005692549.926.0.camel@phantasy> (raw)
In-Reply-To: <NDBBJMOHILCIIKFHCBHAIEOECAAA.per.persson@gnosjo.pp.se>
In-Reply-To: <NDBBJMOHILCIIKFHCBHAIEOECAAA.per.persson@gnosjo.pp.se>
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
prev parent reply other threads:[~2001-11-13 23:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-13 22:32 [PATCH] search_one_table() Per Persson
2001-11-13 22:42 ` Brian Gerst
2001-11-13 23:02 ` Robert Love [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1005692549.926.0.camel@phantasy \
--to=rml@tech9.net \
--cc=linux-kernel@vger.kernel.org \
--cc=per.persson@gnosjo.pp.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox