mirror of
https://github.com/opencv/opencv.git
synced 2024-12-11 14:39:11 +08:00
85923c8f30
Update zlib-ng to 2.2.1 #26113 Release: https://github.com/zlib-ng/zlib-ng/releases/tag/2.2.1 ARM diagnostics patch: https://github.com/zlib-ng/zlib-ng/pull/1774 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/* cpu_features.h -- CPU architecture feature check
|
|
* Copyright (C) 2017 Hans Kristian Rosbach
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
*/
|
|
|
|
#ifndef CPU_FEATURES_H_
|
|
#define CPU_FEATURES_H_
|
|
|
|
#ifndef DISABLE_RUNTIME_CPU_DETECTION
|
|
|
|
#if defined(X86_FEATURES)
|
|
# include "arch/x86/x86_features.h"
|
|
#elif defined(ARM_FEATURES)
|
|
# include "arch/arm/arm_features.h"
|
|
#elif defined(PPC_FEATURES) || defined(POWER_FEATURES)
|
|
# include "arch/power/power_features.h"
|
|
#elif defined(S390_FEATURES)
|
|
# include "arch/s390/s390_features.h"
|
|
#elif defined(RISCV_FEATURES)
|
|
# include "arch/riscv/riscv_features.h"
|
|
#endif
|
|
|
|
struct cpu_features {
|
|
#if defined(X86_FEATURES)
|
|
struct x86_cpu_features x86;
|
|
#elif defined(ARM_FEATURES)
|
|
struct arm_cpu_features arm;
|
|
#elif defined(PPC_FEATURES) || defined(POWER_FEATURES)
|
|
struct power_cpu_features power;
|
|
#elif defined(S390_FEATURES)
|
|
struct s390_cpu_features s390;
|
|
#elif defined(RISCV_FEATURES)
|
|
struct riscv_cpu_features riscv;
|
|
#else
|
|
char empty;
|
|
#endif
|
|
};
|
|
|
|
void cpu_check_features(struct cpu_features *features);
|
|
|
|
#endif
|
|
|
|
#endif
|