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: [RFC/PATCH]: transform builtin isdigit (okay with locales?)


> Yes if isdigit is a macro (e.g. into a table lookup), then my
> expansion would be bypassed.  I make no attempt to stop using a macro
> if it exists.  So table lookups are preserved.
> 
> There are situations/systems where there is no macro, and in those
> cases my builtin is much faster than the function call.

Right, but I think the macro case is much more probable, so much so
that perhaps the case where the user expects a macro and explicitly
undefs it to get the library function is more probably than the user
accidentally getting the library function, and in this case, I'd
hesitate to think that giving them something else is really what they
want.

Just something to think about.


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