Mathinlines and GCC

Andreas Jaeger aj@suse.com
Wed May 2 20:09:00 GMT 2012


On 05/02/2012 10:03 PM, Joseph S. Myers wrote:
> On Wed, 2 May 2012, Andreas Jaeger wrote:
>
>> One more question:  why do we explicitely call the builtin via an inline
>> instead of letting gcc do this?
>>
>> here's an example from the i386 header:
>> #if __GNUC_PREREQ (3, 4)
>> __inline_mathcodeNP2_ (long double, __atan2l, __y, __x,
>> 		       return __builtin_atan2l (__y, __x))
>
> Since this refers to __atan2l, maybe it's about mapping __atan2l to the
> built-in function (whereas GCC would only do that for atan2l, not
> __atan2l)?  Though that's hardly relevant unless __atan2l is used in other
> inlines or within glibc.

You're right, this is for __atan2l which is used internally in glibc in 
a few locations. Not worth exporting at all - but seems there is no 
better way to place it.

Andreas
-- 
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
    GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Libc-alpha mailing list