File tree Expand file tree Collapse file tree 3 files changed +9
-16
lines changed
Expand file tree Collapse file tree 3 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -833,12 +833,6 @@ if (SLEEF_ARCH_S390X)
833833 add_dependencies (disps390x_128_obj disps390x_128.c_generated renamedsp128.h_generated ${TARGET_HEADERS} )
834834 target_sources (${TARGET_LIBSLEEF} PRIVATE $<TARGET_OBJECTS :disps390x_128_obj >)
835835
836- if (COMPILER_SUPPORTS_VXE2)
837- add_library (tryvxe2_obj OBJECT tryvxe2.c )
838- target_compile_options (tryvxe2_obj PRIVATE ${FLAGS_ENABLE_VXE2} )
839- set_target_properties (tryvxe2_obj PROPERTIES ${COMMON_TARGET_PROPERTIES} )
840- target_sources (${TARGET_LIBSLEEF} PRIVATE $<TARGET_OBJECTS :tryvxe2_obj >)
841- endif ()
842836endif (SLEEF_ARCH_S390X )
843837
844838# --------------------------------------------------------------------
Original file line number Diff line number Diff line change 77#include <assert.h>
88#include <signal.h>
99#include <setjmp.h>
10+ #include <sys/auxv.h>
1011
1112#include "misc.h"
1213
1516
1617#include "dispatcher.h"
1718
19+ static int cpuSupportsVXE2() {
20+ static int ret = -1;
21+ if (ret == -1)
22+ ret = !!(getauxval(AT_HWCAP) & HWCAP_S390_VXRS_EXT2);
23+ return ret;
24+ }
25+
1826#ifdef ENABLE_VXE2
19- void sleef_tryVXE2();
20- #define SUBST_IF_EXT1(funcvxe2) if (cpuSupportsExt(sleef_tryVXE2)) p = funcvxe2;
27+ #define SUBST_IF_EXT1(funcvxe2) if (cpuSupportsVXE2()) p = funcvxe2;
2128#else
2229#define SUBST_IF_EXT1(funcvxe2)
2330#endif
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments