diff options
Diffstat (limited to 'Source/WTF/wtf/text/ASCIIFastPath.h')
-rw-r--r-- | Source/WTF/wtf/text/ASCIIFastPath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WTF/wtf/text/ASCIIFastPath.h b/Source/WTF/wtf/text/ASCIIFastPath.h index e5b9d3be2..eb54828a2 100644 --- a/Source/WTF/wtf/text/ASCIIFastPath.h +++ b/Source/WTF/wtf/text/ASCIIFastPath.h @@ -27,7 +27,7 @@ #include <wtf/StdLibExtras.h> #include <wtf/text/LChar.h> -#if OS(DARWIN) && (CPU(X86) || CPU(X86_64)) +#if CPU(X86_SSE2) #include <emmintrin.h> #endif @@ -109,7 +109,7 @@ inline bool charactersAreAllASCII(const CharacterType* characters, size_t length inline void copyLCharsFromUCharSource(LChar* destination, const UChar* source, size_t length) { -#if OS(DARWIN) && (CPU(X86) || CPU(X86_64)) +#if CPU(X86_SSE2) const uintptr_t memoryAccessSize = 16; // Memory accesses on 16 byte (128 bit) alignment const uintptr_t memoryAccessMask = memoryAccessSize - 1; |