Subject: Re: MALLOC vs. malloc: maybe use __builtin_constant_p?
To: None <cgd@broadcom.com>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 03/31/2003 20:21:05
On Monday, March 31, 2003, at 07:14 PM, cgd@broadcom.com wrote:
> Maybe "The Right Thing" is to have a single blessed version, which uses
> __builtin_constant_p() to check whether the arg is a constant, and
> evaluates into the macro or the fn based on that...
Yah, that's a pretty good idea...
I'll take a look while I'm on the plane Wednesday...
-- Jason R. Thorpe <thorpej@wasabisystems.com>