This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Mined out of comp.std.c...
- From: "Rupert Wood" <me at rupey dot net>
- To: <nathan at compsci dot bristol dot ac dot uk>,"'Richard Henderson'" <rth at redhat dot com>
- Cc: "'Zack Weinberg'" <zack at codesourcery dot com>,<gcc at gcc dot gnu dot org>,"'Jan Hubicka'" <jh at suse dot cz>
- Date: Thu, 25 Apr 2002 10:06:16 +0100
- Subject: RE: Mined out of comp.std.c...
I wrote:
> Also, consider a == b. Then d = 0 which we 'and' by. It'll only ever
> return 0.
>
> As far as I can see this routine is only ever likely to work for d
> negative, i.e. we know that a > b beforehand.
... which is exactly what Alan's correction was about. Sorry. I'll shut
up until I wake up.
(Tim - yes, didn't consider overflow. Been too long since I've done
anything numerical.)