[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "or" shortcut does not work - but why?
- From: Andreas Rozek <Rozek@...>
- Date: Tue, 19 Jun 2007 06:45:10 +0200
Good morning!
>I don't think the problem is with inequalities tests per se. A good
compiler
>can do several optimizations when the expressions involved in the (in)
equality
>are boolean expressions (comparisons, ands, ors, etc.). The more
optimizations
>it does, the bigger the chance for bugs. I guess only this instruction
(and
>the next, which is quite similar) needs to be changed. And, if it is to
change,
>my suggestion is not to change for equality (which could be buggy,
too).
>Instead, something like (GETARG_C ? !isfalse : isfalse) would be
easier
>for the compiler...
That's a nice idea - I will then try a ternary operation and see
if it still works...
Kind regards,
Andreas Rozek Phone: ++49 (7031) 436 5784
Brunnenstraße 30/2 Mobile: ++49 (151) 172 879 18
D-71032 Böblingen EMail: Andreas.Rozek@gmx.de
Germany URL: http://www.Andreas-Rozek.de