Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261722AbVDCN1o (ORCPT ); Sun, 3 Apr 2005 09:27:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261724AbVDCN1o (ORCPT ); Sun, 3 Apr 2005 09:27:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:50068 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S261722AbVDCN1m (ORCPT ); Sun, 3 Apr 2005 09:27:42 -0400 To: Dag Arne Osvik Cc: Stephen Rothwell , linux-kernel@vger.kernel.org Subject: Re: Use of C99 int types References: <424FD9BB.7040100@osvik.no> <20050403220508.712e14ec.sfr@canb.auug.org.au> <424FE1D3.9010805@osvik.no> From: Andreas Schwab X-Yow: The appreciation of the average visual graphisticator alone is worth the whole suaveness and decadence which abounds!! Date: Sun, 03 Apr 2005 15:27:40 +0200 In-Reply-To: <424FE1D3.9010805@osvik.no> (Dag Arne Osvik's message of "Sun, 03 Apr 2005 14:30:11 +0200") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (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 Content-Length: 803 Lines: 25 Dag Arne Osvik writes: > Yes, but wouldn't it be much better to avoid code like the following, > which may also be wrong (in terms of speed)? > > #ifdef CONFIG_64BIT // or maybe CONFIG_X86_64? > #define fast_u32 u64 > #else > #define fast_u32 u32 > #endif How about using just unsigned long instead? Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra?e 5, 90409 N?rnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - 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/