[PATCH] i586: Use a jump table in strcpy.S {BZ #22353]

Florian Weimer fweimer@redhat.com
Mon Oct 30 13:20:00 GMT 2017


On 10/30/2017 02:12 PM, H.J. Lu wrote:

>> What's the performance impact of the change?  Is it even worth to use a jump
>> table here?
>>
> 
> I added 2 strcpy implementations to hjl/pr22353/master.  Jump table is faster
> than other non-SSE strcpy implementations because it can copy up to 4 bytes
> at a time.

To clarify, I meant replacing the jump table with conditional branches, 
basically getting rid of Duff's device.

Thanks,
Florian



More information about the Libc-alpha mailing list