summaryrefslogtreecommitdiff
path: root/cpu_features.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpu_features.h')
-rw-r--r--cpu_features.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/cpu_features.h b/cpu_features.h
new file mode 100644
index 0000000..2a4a797
--- /dev/null
+++ b/cpu_features.h
@@ -0,0 +1,17 @@
+/* cpu_features.h -- Processor features detection.
+ *
+ * Copyright 2018 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the Chromium source repository LICENSE file.
+ */
+
+#include "zlib.h"
+
+/* TODO(cavalcantii): remove checks for x86_flags on deflate.
+ */
+extern int arm_cpu_enable_crc32;
+extern int arm_cpu_enable_pmull;
+extern int x86_cpu_enable_ssse3;
+extern int x86_cpu_enable_simd;
+
+void cpu_check_features(void);