Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751936Ab2KQOi0 (ORCPT ); Sat, 17 Nov 2012 09:38:26 -0500 Received: from mail.skyhub.de ([78.46.96.112]:39880 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751850Ab2KQOiY (ORCPT ); Sat, 17 Nov 2012 09:38:24 -0500 Date: Sat, 17 Nov 2012 15:38:41 +0100 From: Borislav Petkov To: Daniel Santos Cc: LKML , Andi Kleen , Andrea Arcangeli , Andrew Morton , Christopher Li , David Daney , David Howells , Joe Perches , Josh Triplett , Konstantin Khlebnikov , linux-sparse@vger.kernel.org, Michel Lespinasse , Paul Gortmaker , Pavel Pisa , Peter Zijlstra , Steven Rostedt Subject: Re: [PATCH v5 6/9] bug.h: Prevent double evaulation of in BUILD_BUG_ON Message-ID: <20121117143840.GB16441@x1.osrc.amd.com> Mail-Followup-To: Borislav Petkov , Daniel Santos , LKML , Andi Kleen , Andrea Arcangeli , Andrew Morton , Christopher Li , David Daney , David Howells , Joe Perches , Josh Triplett , Konstantin Khlebnikov , linux-sparse@vger.kernel.org, Michel Lespinasse , Paul Gortmaker , Pavel Pisa , Peter Zijlstra , Steven Rostedt References: <1352844568-18826-1-git-send-email-daniel.santos@pobox.com> <1352844821-18952-6-git-send-email-daniel.santos@pobox.com> <20121115150726.GD4956@x1.osrc.amd.com> <50A53E53.8080404@att.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <50A53E53.8080404@att.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 24 On Thu, Nov 15, 2012 at 01:11:15PM -0600, Daniel Santos wrote: > Ah yes. I did notice that at one point, but I think it slipped > my mind. Also, the kernel has introduced me to the usage of the > !! construct, of which I'm well versed in its affects in various > situations and how gcc's optimizer ends up treating its usage, so > probably another reason I didn't change it immediately. But it's > basically shorthand for the expression (condition ? 1 : 0), correct? I don't think so: "!!" is simply a double negation which turns the whatever wild construct you have into either 0 or 1, depending on what it evaluates to. But I don't know what the standard says so you'll have to check :-) Thanks. -- Regards/Gruss, Boris. -- 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/