Re: [pcre-dev] Adding SSE2 support to PCRE2-JIT

Góra strony
Delete this message
Autor: Zoltán Herczeg
Data:  
Dla: Petr Pisar
CC: pcre-dev
Temat: Re: [pcre-dev] Adding SSE2 support to PCRE2-JIT
>May have a question about pcre executable portability? Not all x86 machines
>support SSE2. Is it there a run-time check for SSE2 support with a fall-back
>code, or is it a compile time option?


The SSE2 code path is optional. It is checked at runtime using CPUID instruction on x86-32 (it is always available on x86-64 bit).

Regards,
Zoltan