svn commit: r227812 - head/lib/libc/string

David Schultz das at freebsd.org
Tue Nov 22 16:00:56 UTC 2011


On Tue, Nov 22, 2011, David Schultz wrote:
> First, the comment suggesting that using '|' instead of '||' isn't
> correct; any reasonable compiler knows how to optimize
> side-effect-free expressions like these.  (The reverse
> transformation, from the arithmetic expression to the boolean one,
> is actually harder for the compiler in general.)

That should read "the comment suggesting that using '|' instead of
'||' <<is an optimization>> isn't correct".


More information about the svn-src-head mailing list