Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753575AbZA1T7S (ORCPT ); Wed, 28 Jan 2009 14:59:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751281AbZA1T7F (ORCPT ); Wed, 28 Jan 2009 14:59:05 -0500 Received: from x35.xmailserver.org ([64.71.152.41]:54212 "EHLO x35.xmailserver.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943AbZA1T7C (ORCPT ); Wed, 28 Jan 2009 14:59:02 -0500 X-AuthUser: davidel@xmailserver.org Date: Wed, 28 Jan 2009 11:59:01 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@alien.or.mcafeemobile.com To: Mikael Pettersson cc: Linux Kernel Mailing List Subject: Re: if (unlikely(...)) == unnecessary? In-Reply-To: <18816.47047.304831.827133@harpo.it.uu.se> Message-ID: References: <18816.47047.304831.827133@harpo.it.uu.se> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) X-GPG-FINGRPRINT: CFAE 5BEE FD36 F65E E640 56FE 0974 BF23 270F 474E X-GPG-PUBLIC_KEY: http://www.xmailserver.org/davidel.asc MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 24 On Wed, 28 Jan 2009, Mikael Pettersson wrote: > Davide Libenzi writes: > > I noticed that GCC >= 3.3 (not tried the ones before) automatically > > branches out the "if" code (and follow-through the "else" code, if there). > > Is that a coincidence or a rule we can rely on going forward? > > Coincidence. > > Why on earth would you want to rely on an purely private implementation > detail like that? I didn't want to. I was just curious if anyone that actually followed GCC developments in the last few years could shed some light on it. - Davide -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/