Date: Tue, 28 May 2013 22:44:22 +1000 (EST) From: Bruce Evans <brde@optusnet.com.au> To: David Chisnall <theraven@freebsd.org> Cc: Diane Bruce <db@db.net>, John Baldwin <jhb@freebsd.org>, Stephen Montgomery-Smith <stephen@missouri.edu>, freebsd-numerics@freebsd.org, Steve Kargl <sgk@troutmask.apl.washington.edu>, David Schultz <das@freebsd.org>, Peter Jeremy <peter@rulingia.com>, Warner Losh <imp@bsdimp.com> Subject: Re: Use of C99 extra long double math functions after r236148 Message-ID: <20130528222541.N2926@besplex.bde.org> In-Reply-To: <C7367F2D-0A97-422E-97B1-4AF4BFEDD526@FreeBSD.org> References: <501204AD.30605@missouri.edu> <20120727032611.GB25690@server.rulingia.com> <20120728125824.GA26553@server.rulingia.com> <501460BB.30806@missouri.edu> <20120728231300.GA20741@server.rulingia.com> <50148F02.4020104@missouri.edu> <20120729222706.GA29048@server.rulingia.com> <5015BB9F.90807@missouri.edu> <20130528043205.GA3282@zim.MIT.EDU> <20130528155933.V1298@besplex.bde.org> <20130528081921.GB13594@zim.MIT.EDU> <20130528205441.U2294@besplex.bde.org> <C7367F2D-0A97-422E-97B1-4AF4BFEDD526@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 28 May 2013, David Chisnall wrote: > On 28 May 2013, at 12:12, Bruce Evans <brde@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130528222541.N2926>