This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug math/6406] Improve performance of libm wrapper functions.


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.


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