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

Αρχική Σελίδα
Delete this message
Συντάκτης: Zoltán Herczeg
Ημερομηνία:  
Προς: Petr Pisar
Υ/ο: pcre-dev
Αντικείμενο: 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