Skip to content

Commit 8826d25

Browse files
committed
Use XSIMD_HAVE_LINUX_GETAUXVAL
1 parent 2b80376 commit 8826d25

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

include/xsimd/config/xsimd_config.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,9 @@
528528
* Set to 1 if the target is a linux
529529
*/
530530
#if defined(__linux__) && (!defined(__ANDROID_API__) || __ANDROID_API__ >= 18)
531-
#define XSIMD_WITH_LINUX_GETAUXVAL 1
531+
#define XSIMD_HAVE_LINUX_GETAUXVAL 1
532532
#else
533-
#define XSIMD_WITH_LINUX_GETAUXVAL 0
533+
#define XSIMD_HAVE_LINUX_GETAUXVAL 0
534534
#endif
535535

536536
#endif

include/xsimd/config/xsimd_cpu_features_arm.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "./xsimd_config.hpp"
1616

17-
#if XSIMD_TARGET_ARM && XSIMD_WITH_LINUX_GETAUXVAL
17+
#if XSIMD_TARGET_ARM && XSIMD_HAVE_LINUX_GETAUXVAL
1818
#include "../utils/bits.hpp"
1919
#include "./xsimd_getauxval.hpp"
2020

@@ -27,7 +27,7 @@
2727
#if XSIMD_TARGET_ARM64 && !defined(HWCAP2_I8MM)
2828
#define HWCAP2_I8MM (1 << 13)
2929
#endif
30-
#endif // XSIMD_TARGET_ARM && XSIMD_WITH_LINUX_GETAUXVAL
30+
#endif // XSIMD_TARGET_ARM && XSIMD_HAVE_LINUX_GETAUXVAL
3131

3232
namespace xsimd
3333
{
@@ -48,7 +48,7 @@ namespace xsimd
4848

4949
inline bool neon() const noexcept
5050
{
51-
#if XSIMD_TARGET_ARM && !XSIMD_TARGET_ARM64 && XSIMD_WITH_LINUX_GETAUXVAL
51+
#if XSIMD_TARGET_ARM && !XSIMD_TARGET_ARM64 && XSIMD_HAVE_LINUX_GETAUXVAL
5252
return hwcap().has_feature(HWCAP_NEON);
5353
#else
5454
return static_cast<bool>(XSIMD_WITH_NEON);
@@ -62,7 +62,7 @@ namespace xsimd
6262

6363
inline bool sve() const noexcept
6464
{
65-
#if XSIMD_TARGET_ARM64 && XSIMD_WITH_LINUX_GETAUXVAL
65+
#if XSIMD_TARGET_ARM64 && XSIMD_HAVE_LINUX_GETAUXVAL
6666
return hwcap().has_feature(HWCAP_SVE);
6767
#else
6868
return false;
@@ -71,15 +71,15 @@ namespace xsimd
7171

7272
inline bool i8mm() const noexcept
7373
{
74-
#if XSIMD_TARGET_ARM64 && XSIMD_WITH_LINUX_GETAUXVAL
74+
#if XSIMD_TARGET_ARM64 && XSIMD_HAVE_LINUX_GETAUXVAL
7575
return hwcap2().has_feature(HWCAP2_I8MM);
7676
#else
7777
return false;
7878
#endif
7979
}
8080

8181
private:
82-
#if XSIMD_TARGET_ARM && XSIMD_WITH_LINUX_GETAUXVAL
82+
#if XSIMD_TARGET_ARM && XSIMD_HAVE_LINUX_GETAUXVAL
8383
enum class status
8484
{
8585
hwcap_valid = 0,
@@ -115,7 +115,7 @@ namespace xsimd
115115
return m_hwcap2;
116116
}
117117
#endif
118-
#endif // XSIMD_TARGET_ARM && XSIMD_WITH_LINUX_GETAUXVAL
118+
#endif // XSIMD_TARGET_ARM && XSIMD_HAVE_LINUX_GETAUXVAL
119119
};
120120
}
121121
#endif

include/xsimd/config/xsimd_cpuid.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "./xsimd_cpu_features_x86.hpp"
1818
#include "./xsimd_inline.hpp"
1919

20-
#if XSIMD_WITH_LINUX_GETAUXVAL && defined(__riscv_vector)
20+
#if XSIMD_HAVE_LINUX_GETAUXVAL && defined(__riscv_vector)
2121
#include <asm/hwcap.h>
2222
#include <sys/auxv.h>
2323
#endif
@@ -88,7 +88,7 @@ namespace xsimd
8888
vsx = 1;
8989
#endif
9090

91-
#if XSIMD_WITH_LINUX_GETAUXVAL
91+
#if XSIMD_HAVE_LINUX_GETAUXVAL
9292
#if defined(__riscv_vector) && defined(__riscv_v_fixed_vlen) && __riscv_v_fixed_vlen > 0
9393

9494
#ifndef HWCAP_V

include/xsimd/config/xsimd_getauxval.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "./xsimd_config.hpp"
1616

17-
#if XSIMD_WITH_LINUX_GETAUXVAL
17+
#if XSIMD_HAVE_LINUX_GETAUXVAL
1818
#include <sys/auxv.h> // getauxval
1919
#endif
2020

@@ -74,7 +74,7 @@ namespace xsimd
7474

7575
namespace detail
7676
{
77-
#if XSIMD_WITH_LINUX_GETAUXVAL
77+
#if XSIMD_HAVE_LINUX_GETAUXVAL
7878
inline linux_getauxval_t linux_getauxval(linux_getauxval_t type) noexcept
7979
{
8080
return getauxval(type);

0 commit comments

Comments
 (0)