From owner-svn-src-all@FreeBSD.ORG Tue Nov 22 14:53:06 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E57D41065670 for ; Tue, 22 Nov 2011 14:53:06 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo-p00-ob6.rzone.de (mo-p00-ob6.rzone.de [IPv6:2a01:238:20a:202:53f0::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7F65B8FC0A for ; Tue, 22 Nov 2011 14:53:06 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/avgusCdvwXOZ/NA7x/bslx4UOSLYuW7Bwv8PtjkoBcppeXE= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de ([2001:6f8:13f0:0:224:d7ff:fe63:d530]) by post.strato.de (mrclete mo62) (RZmta 26.10 AUTH) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id v03597nAMEa46v for ; Tue, 22 Nov 2011 15:52:46 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Tue, 22 Nov 2011 15:52:39 +0100 Date: Tue, 22 Nov 2011 15:52:39 +0100 From: Joerg Sonnenberger To: svn-src-all@freebsd.org Message-ID: <20111122145239.GB19875@britannica.bec.de> References: <201111220250.pAM2oPWC070856@svn.freebsd.org> <20111122210422.E8674@besplex.bde.org> <8B1C6EE4-A351-44A6-AC8A-DC53779CD380@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8B1C6EE4-A351-44A6-AC8A-DC53779CD380@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: svn commit: r227812 - head/lib/libc/string X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2011 14:53:07 -0000 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