summaryrefslogtreecommitdiff
path: root/thirdparty/zstd/common/compiler.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-22 11:02:56 +0200
committerGitHub <noreply@github.com>2019-07-22 11:02:56 +0200
commit411c49b2abdff9daa2bfdc6232b824a6e67fb585 (patch)
tree68c7c1b1f4c08b29458a51b01e4061f6639597e0 /thirdparty/zstd/common/compiler.h
parente448fdad159a07ee855630ee4d3b0328a94998e0 (diff)
parentb81fa47f3882ef7d91baa9fa1351ea504fb019ca (diff)
Merge pull request #30717 from akien-mga/zstd-1.4.1
zstd: Update to upstream version 1.4.1
Diffstat (limited to 'thirdparty/zstd/common/compiler.h')
-rw-r--r--thirdparty/zstd/common/compiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/thirdparty/zstd/common/compiler.h b/thirdparty/zstd/common/compiler.h
index 0836e3ed27..87bf51ae8c 100644
--- a/thirdparty/zstd/common/compiler.h
+++ b/thirdparty/zstd/common/compiler.h
@@ -127,6 +127,13 @@
} \
}
+/* vectorization */
+#if !defined(__clang__) && defined(__GNUC__)
+# define DONT_VECTORIZE __attribute__((optimize("no-tree-vectorize")))
+#else
+# define DONT_VECTORIZE
+#endif
+
/* disable warnings */
#ifdef _MSC_VER /* Visual Studio */
# include <intrin.h> /* For Visual 2005 */