xref: /aosp_15_r20/external/zlib/cpu_features.h (revision 86ee64e75fa5f8bce2c8c356138035642429cd05)
1 /* cpu_features.h -- Processor features detection.
2  *
3  * Copyright 2018 The Chromium Authors
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the Chromium source repository LICENSE file.
6  */
7 
8 #include "zlib.h"
9 
10 /* TODO(cavalcantii): remove checks for x86_flags on deflate.
11  */
12 extern int arm_cpu_enable_crc32;
13 extern int arm_cpu_enable_pmull;
14 extern int x86_cpu_enable_sse2;
15 extern int x86_cpu_enable_ssse3;
16 extern int x86_cpu_enable_simd;
17 extern int x86_cpu_enable_avx512;
18 
19 extern int riscv_cpu_enable_rvv;
20 extern int riscv_cpu_enable_vclmul;
21 
22 void cpu_check_features(void);
23