This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]