mirror of
https://github.com/opencv/opencv.git
synced 2025-01-06 02:08:12 +08:00
15 lines
311 B
C
15 lines
311 B
C
|
#include "zbuild.h"
|
||
|
#include "s390_features.h"
|
||
|
|
||
|
#ifdef HAVE_SYS_AUXV_H
|
||
|
# include <sys/auxv.h>
|
||
|
#endif
|
||
|
|
||
|
#ifndef HWCAP_S390_VXRS
|
||
|
#define HWCAP_S390_VXRS HWCAP_S390_VX
|
||
|
#endif
|
||
|
|
||
|
void Z_INTERNAL s390_check_features(struct s390_cpu_features *features) {
|
||
|
features->has_vx = getauxval(AT_HWCAP) & HWCAP_S390_VXRS;
|
||
|
}
|