This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6406] Improve performance of libm wrapper functions.
- From: "drepper.fsp at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 08 Oct 2011 08:45:27 +0000
- Subject: [Bug math/6406] Improve performance of libm wrapper functions.
- Auto-submitted: auto-generated
- References: <bug-6406-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=6406
--- Comment #7 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-10-08 08:45:27 UTC ---
This is horrible.
Provide optimized inline versions of the standard functions and then fix the
compiler to reuse the result of function calls which convert the floating-point
numbers to the bitmasks. If the inlined conversion function is marked 'const'
then the compiler should be able to determine that subsequent calls to
bits = float2bits(floatvar);
return exactly the same result and should reuse it (given that floatvar hasn't
changed).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.