diff options
author | atdt <atdt@google.com> | 2018-03-27 01:33:58 -0700 |
---|---|---|
committer | Victor Costan <costan@gmail.com> | 2018-08-04 18:51:13 -0700 |
commit | be490ef9ecc113e4cc8fe986bcc3166ee15df111 (patch) | |
tree | 87993fcf09a15764aa3503c04d8b73520d690d9a /snappy.cc | |
parent | 8f469d97e2ccbd87e5c00d25b1969daebfbfa350 (diff) | |
download | snappy-git-be490ef9ecc113e4cc8fe986bcc3166ee15df111.tar.gz |
Test for SSE3 suppport before using pshufb.
Diffstat (limited to 'snappy.cc')
-rw-r--r-- | snappy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |