diff options
Diffstat (limited to 'cpu_features.h')
| -rw-r--r-- | cpu_features.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cpu_features.h b/cpu_features.h index 22d70da3d9..14eb19a751 100644 --- a/cpu_features.h +++ b/cpu_features.h @@ -20,7 +20,19 @@ # include "arch/s390/s390_features.h" #endif -extern void cpu_check_features(void); +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; +#endif +}; + +extern void cpu_check_features(struct cpu_features *features); /* adler32 */ typedef uint32_t (*adler32_func)(uint32_t adler, const uint8_t *buf, size_t len); @@ -134,7 +146,7 @@ extern uint32_t crc32_acle(uint32_t crc, const uint8_t *buf, size_t len); #elif defined(POWER8_VSX) extern uint32_t crc32_power8(uint32_t crc, const uint8_t *buf, size_t len); #elif defined(S390_CRC32_VX) -extern uint32_t PREFIX(s390_crc32_vx)(uint32_t crc, const uint8_t *buf, size_t len); +extern uint32_t crc32_s390_vx(uint32_t crc, const uint8_t *buf, size_t len); #endif /* compare256 */ |
