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

Joseph Myers joseph@codesourcery.com
Fri Oct 20 16:04:00 GMT 2017


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



More information about the Libc-alpha mailing list