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

Joerg Sonnenberger joerg at britannica.bec.de
Tue Nov 22 14:53:07 UTC 2011


On Tue, Nov 22, 2011 at 02:20:15PM +0000, David Chisnall wrote:
> In this case, either | or || is fine, because neither reads any memory
> or has side effects so | and || are equivalent to the compiler, but
> the use of | tells a human reading the code that the order is unimportant.  

The use of | is just more obscure. The compiler can easily interfere
here that the execution order is irrelevant as the statements are side
effect free.

Joerg


More information about the svn-src-all mailing list