This is the mail archive of the libc-alpha@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]

Re: [PATCH 09/10] i386: Replace assembly versions of e_log2f with generic e_log2f.c


On Fri, 20 Oct 2017, Szabolcs Nagy wrote:

> is this comparing x87 c code with x87 asm?
> or did the toolchain have -fpmath=sse?
> 
> i would not expect that much speedup on i386

My guess would be: the processor's implementation of the fyl2xp1 and fyl2x 
instructions may use a polynomial approximation internally, but one 
producing a result accurate to 64-bit precision, so it's plausible to get 
significant speedups by using an approximation that only needs to be 
accurate to 24 bits.

-- 
Joseph S. Myers
joseph@codesourcery.com


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