[PATCH] msvcrt: SSE2 implementation of memcmp for x86_64.
Martin Storsjö
martin at martin.st
Thu Apr 7 00:22:20 CDT 2022
On Wed, 6 Apr 2022, Elaine Lefler wrote:
> On Tue, Apr 5, 2022 at 2:14 AM Jan Sikorski <jsikorski at codeweavers.com> wrote:
>>
>> Hello everyone,
>>
>>> On 2 Apr 2022, at 06:44, Elaine Lefler <elaineclefler at gmail.com> wrote:
>>>
>>> Should be noted that SSE2 also exists on 32-bit processors, and in
>>> this same file you can find usage of "sse2_supported", which would
>>> enable you to use this code path on i386. You can put
>>> __attribute__((target("sse2"))) on the declaration of sse2_memcmp to
>>> allow GCC to emit SSE2 instructions even when the file's architecture
>>> forbids it.
>>
>> True, I intentionally left it out in this patch, because it’s possibly more compiler dependent.
>>
>
> AFAIK this dll will only ever be compiled with mingw-gcc. Should be
> safe to assume GCC unless there are plans to support other
> cross-compilers.
Clang is also supported as cross compiler - both with mingw targets and
msvc targets.
// Martin
More information about the wine-devel
mailing list