From be490ef9ecc113e4cc8fe986bcc3166ee15df111 Mon Sep 17 00:00:00 2001 From: atdt Date: Tue, 27 Mar 2018 01:33:58 -0700 Subject: [PATCH] Test for SSE3 suppport before using pshufb. --- snappy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappy.cc b/snappy.cc index a61209f..34fed24 100644 --- a/snappy.cc +++ b/snappy.cc @@ -183,7 +183,7 @@ inline char* IncrementalCopy(const char* src, char* op, char* const op_limit, // Handle the uncommon case where pattern is less than 8 bytes. if (SNAPPY_PREDICT_FALSE(pattern_size < 8)) { -#if SNAPPY_HAVE_SSE2 +#if defined __SSSE3__ // Load the first eight bytes into an 128-bit XMM register, then use PSHUFB // to permute the register's contents in-place into a repeating sequence of // the first "pattern_size" bytes.