This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Expand finite() as inline i386 asm


> On Fri, 26 Jan 2007, Jan Hubicka wrote:
> 
> > I am not too faimilar with implementation of these predicates, but I
> > will take a look. The problem with FPclassify is that the return value
> > constants are libc dependent? 
> 
> Yes.  For the rest, it should be possible to have a type-generic 
> __builtin_isfoo that is always expanded inline such that
> 
> #define isfoo(x) (__builtin_isfoo(x))
> 
> is a correct definition of the standard macro.

Similarly I guess we can also have
#define fpclassify(x) (__builtin_fpclassify(x,retval1,retval2,retval3,retval4...)
and require the retvals to be compile time constants.

Honza
> 
> -- 
> Joseph S. Myers
> joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]