From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754277AbXDYV6H (ORCPT ); Wed, 25 Apr 2007 17:58:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754285AbXDYV6H (ORCPT ); Wed, 25 Apr 2007 17:58:07 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43365 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754277AbXDYV6G (ORCPT ); Wed, 25 Apr 2007 17:58:06 -0400 From: Andreas Schwab To: "linux-os (Dick Johnson)" Cc: "John Anthony Kazos Jr." , "Randy Dunlap" , "Richard Knutsson" , "Jiri Bohac" , , "Linux kernel" Subject: Re: [RFC][PATCH] fix abs() macro to work with types wider than int References: <20070419092339.GA13569@dwarf.suse.cz> <20070419084339.418dbe69.randy.dunlap@oracle.com> <4628B5B6.90303@student.ltu.se> <20070425082028.8ece3094.randy.dunlap@oracle.com> X-Yow: Here we are in America... when do we collect unemployment? Date: Wed, 25 Apr 2007 23:57:53 +0200 In-Reply-To: (linux-os@analogic.com's message of "Wed, 25 Apr 2007 16:30:29 -0400") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org "linux-os (Dick Johnson)" writes: > The original query was for a macro. A macro that does not evaluate its argument more than once. If you want it to match the behaviour as defined by the C standard then it is not allowed to do so. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."