[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 02 Mar 2008 20:50:01 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: David Brownell <david-b@...bell.net>
CC: Segher Boessenkool <segher@...nel.crashing.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Linux Arch Mailing List <linux-arch@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] Add C99-style constructor macros for specific-sized
integers
David Brownell wrote:
> On Sunday 02 March 2008, Segher Boessenkool wrote:
>
>> Do these new macros really buy anything over just writing LL in the
>> few places that 64-bit constants are used?
>
> The original workaround was to make the offending *SEC_TO_HZ_ADJ32
> constants use "ULL" suffixes. Certainly making the Perl script emit
> those would be less intrusive.
>
"Less intrusive" in the sense of smaller line count for this particular
patch, perhaps, but it makes it less obvious when reading the code
what's going on (a size override in an entirely different file).
Additionally, I'm hoping these kind of things can be used elsewhere; the
C99 <inttypes.h> facilities are really quite nice once you get over the
rather ugly look of them, and I for one definitely miss having access to
the in the kernel.
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists