[PATCH] msvcrt: Improve memmove performance on i386 and x86_64 architectures.

Piotr Caban piotr at codeweavers.com
Tue Jan 26 12:44:34 CST 2021


On 1/26/21 5:25 PM, Alexandre Julliard wrote:
> Piotr Caban <piotr at codeweavers.com> writes:
> 
>> +#define MEMMOVE_INIT \
>> +    "movl " __ASM_NAME( "sse2_supported" ) ", %eax\n\t" \
>> +    "cmp $0, %eax\n\t" \
> 
> In general you can't access global variables that way, it's not
> compatible with PIC. I'd suggest doing that part from C code.
> 
I've sent a fixed version that does the check on C side. It has some 
impact on performance but I guess it can be ignored.

Thanks,
Piotr



More information about the wine-devel mailing list