2022-11-09 08:36:52 +01:00
|
|
|
/* cpu_features.h -- Processor features detection.
|
|
|
|
*
|
|
|
|
* Copyright 2018 The Chromium Authors
|
|
|
|
* 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_sse2;
|
|
|
|
extern int x86_cpu_enable_ssse3;
|
|
|
|
extern int x86_cpu_enable_simd;
|
2023-05-31 08:24:04 +02:00
|
|
|
extern int x86_cpu_enable_avx512;
|
2022-11-09 08:36:52 +01:00
|
|
|
|
2024-03-27 20:53:28 +01:00
|
|
|
extern int riscv_cpu_enable_rvv;
|
|
|
|
extern int riscv_cpu_enable_vclmul;
|
|
|
|
|
2022-11-09 08:36:52 +01:00
|
|
|
void cpu_check_features(void);
|