Article View: comp.lang.c
Article #1451Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Chris M. Thomasson
Date: Tue, 10 Nov 2026 21:23
Date: Tue, 10 Nov 2026 21:23
19 lines
1985 bytes
1985 bytes
On 11/10/2026 8:41 AM, Bonita Montero wrote:
> Am 10.11.2026 um 09:58 schrieb Fred. Zwarts:
>> Op 09.nov.2026 om 10:03 schreef Bonita Montero:
>>> Am 06.11.2026 um 00:42 schrieb Lynn McGuire:
>>>
>>>> if (j1 * i1 < 1) {
>>>> goto L463;
>>>> }
>>>> ...
>>>> if ((j1 * i1) < 1) {
>>>> goto L463;
>>>> }
>>> The latter one leads to more optimized code !
>>
>> Really? Why?
>
> It's faster the more braces you have.
You mean taking pressure off of the compiler stages, or what?
Technical Details
Message-ID:
<11d0209$2guta$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <11cs28o$1395m$1@raubtier-asyl.eternal-september.org> <11cumba$1ppuo$1@dont-email.me> <11cvhg8$2ahke$2@raubtier-asyl.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Date: Tue, 10 Nov 2026 13:23:20 -0800 Organization: A noiseless patient Spider Lines: 19 Message-ID: <11d0209$2guta$1@dont-email.me> References: <11cj4a0$23796$1@dont-email.me> <11cs28o$1395m$1@raubtier-asyl.eternal-september.org> <11cumba$1ppuo$1@dont-email.me> <11cvhg8$2ahke$2@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 10 Nov 2026 21:23:22 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2653098"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TpAC5Ic4TCT+lGtNYr0QBu4/gPddWf48="; posting-host="3e7af8eaf01208094d9c8c047e2a4497" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:G0k4UaMIL7bPNNO3P9KIaXH7338= sha256:60cvpEOPpES9L3leEJe6XRo0KFWARbpIfGB0t09lbL8= sha1:5d5hu4JqLnKozniEH0f6tQkJ9i0= sha256:G1HEINCyq0ewYEQZ6mTtJzg+sFRAOSWkFwZ5FY3kxIY= Content-Language: en-US In-Reply-To: <11cvhg8$2ahke$2@raubtier-asyl.eternal-september.org>