This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Clean up SSE variable shifts
On 08/21/2010 01:28 PM, Lu, Hongjiu wrote:
>> (1) Instead of having the compiler generate a jump table, use a
>> computed branch inside inline assembly.
>
> Have you compared the generated code against C version in varshift.h?
Yes, it removes a memory access from .rodata.
> What is the performance impact of extra function call
> vs. multiple copies of the same jump table?
I don't know. I would hope that an indirect call and return
would be just as predictable as an indirect jump and branch.
Fancy helping me benchmark?
r~