Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Nov 2011 11:00:55 -0500
From:      David Schultz <das@freebsd.org>
To:        Eitan Adler <eadler@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r227812 - head/lib/libc/string
Message-ID:  <20111122160055.GA20431@zim.MIT.EDU>
In-Reply-To: <20111122153332.GA20145@zim.MIT.EDU>
References:  <201111220250.pAM2oPWC070856@svn.freebsd.org> <20111122153332.GA20145@zim.MIT.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
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".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111122160055.GA20431>