Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965157AbWJJMYK (ORCPT ); Tue, 10 Oct 2006 08:24:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965156AbWJJMYK (ORCPT ); Tue, 10 Oct 2006 08:24:10 -0400 Received: from mx1.redhat.com ([66.187.233.31]:56709 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S965000AbWJJMYI (ORCPT ); Tue, 10 Oct 2006 08:24:08 -0400 From: David Howells In-Reply-To: References: <20061006133414.9972.79007.stgit@warthog.cambridge.redhat.com> <20061006203919.GS2563@parisc-linux.org> <5267.1160381168@redhat.com> To: Jan Engelhardt Cc: Kyle Moffett , Matthew Wilcox , torvalds@osdl.org, akpm@osdl.org, sfr@canb.auug.org.au, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4] X-Mailer: MH-E 8.0; nmh 1.1; GNU Emacs 22.0.50 Date: Tue, 10 Oct 2006 13:23:34 +0100 Message-ID: <5167.1160483014@redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 763 Lines: 30 Jan Engelhardt wrote: > Ouch ouch ouch. It should better be > > typedef uint32_t __u32; Actually, if you want to guarantee the size of an integer variable with gcc, you can do, for example, this: typedef int __attribute__((mode(SI))) siint; which creates a 32-bit signed integer type called "siint". The "mode" attribute is parameterised with one of the following values to indicate the specific size of integer required: QI 8-bit HI 16-bit SI 32-bit DI 64-bit TI 128-bit David - 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/