Modules/ThirdParty/ZLIB/src/itkzlib-ng/arch/s390/s390_features.c
raw| 1 | #include "../../zbuild.h" |
| 2 | #include "s390_features.h" |
| 3 | |
| 4 | #ifdef HAVE_SYS_AUXV_H |
| 5 | # include <sys/auxv.h> |
| 6 | #endif |
| 7 | |
| 8 | #ifndef HWCAP_S390_VXRS |
| 9 | #define HWCAP_S390_VXRS HWCAP_S390_VX |
| 10 | #endif |
| 11 | |
| 12 | void Z_INTERNAL s390_check_features(struct s390_cpu_features *features) { |
| 13 | features->has_vx = getauxval(AT_HWCAP) & HWCAP_S390_VXRS; |
| 14 | } |