From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH 1/2] Add C99-style constructor macros for specific-sized integers Date: Mon, 3 Mar 2008 06:20:07 +0000 Message-ID: <20080303062007.GY27894@ZenIV.linux.org.uk> References: <4a8566f54ff84f498c5c0c0340076c296b1840e6@tazenda.hos.anvin.org> <20080303023851.GF24386@parisc-linux.org> <47CB81EA.8070802@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <47CB81EA.8070802-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org> Sender: linux-arch-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: To: "H. Peter Anvin" Cc: Matthew Wilcox , Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , Linux Arch Mailing List , David Brownell On Sun, Mar 02, 2008 at 08:43:22PM -0800, H. Peter Anvin wrote: > >>+#define S64_C(x) x ## LL > >>+#define U64_C(x) x ## ULL > > > >but can't we use the latter for all arches? > > > > You really don't want to, as the whole point is that you want it to > match what u64/s64 is defined as, in order to avoid spurious warnings. Excuse me, in which contexts? Where does replacement of explicitly long constant with explicitly long long one generate warnings on a host that has range(long) equal to range(long long)? -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:43560 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbYCCGU4 (ORCPT ); Mon, 3 Mar 2008 01:20:56 -0500 Date: Mon, 3 Mar 2008 06:20:07 +0000 From: Al Viro Subject: Re: [PATCH 1/2] Add C99-style constructor macros for specific-sized integers Message-ID: <20080303062007.GY27894@ZenIV.linux.org.uk> References: <4a8566f54ff84f498c5c0c0340076c296b1840e6@tazenda.hos.anvin.org> <20080303023851.GF24386@parisc-linux.org> <47CB81EA.8070802@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47CB81EA.8070802@zytor.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: "H. Peter Anvin" Cc: Matthew Wilcox , Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , Linux Arch Mailing List , David Brownell Message-ID: <20080303062007.GSpWItg3FR6PTFemWpc7zhrWKq_93mHbn-ae0b-ObY4@z> On Sun, Mar 02, 2008 at 08:43:22PM -0800, H. Peter Anvin wrote: > >>+#define S64_C(x) x ## LL > >>+#define U64_C(x) x ## ULL > > > >but can't we use the latter for all arches? > > > > You really don't want to, as the whole point is that you want it to > match what u64/s64 is defined as, in order to avoid spurious warnings. Excuse me, in which contexts? Where does replacement of explicitly long constant with explicitly long long one generate warnings on a host that has range(long) equal to range(long long)?