Use of C99 extra long double math functions after r236148

Bruce Evans brde at optusnet.com.au
Tue May 28 13:03:13 UTC 2013


On Tue, 28 May 2013, David Chisnall wrote:

> On 28 May 2013, at 12:12, Bruce Evans <brde at optusnet.com.au> wrote:
>
>> Inlining the big function do_hard_work() helps for gcc on
>> amd64 (about 5% faster), but makes no significant difference for clang.
>> The previous testing was mostly with gcc.
>
> How are you inlining?  With the C99 inline keyword, which changes the linkage type but only provides and advisory hint to the compiler with regard to inlining (which, in a modern compiler, is largely ignored), or with the always_inline attribute, which forces the compiler to inline the function?

Only static inlining in catrig*.c.  All compilers follow its hints there.
libm sometimes uses static __always_inline instead of static inline
elsewhere (but mostly not).

Bruce


More information about the freebsd-numerics mailing list