aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-hwcaps.h
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-hwcaps.h')
-rw-r--r--elf/dl-hwcaps.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/elf/dl-hwcaps.h b/elf/dl-hwcaps.h
index 9ce3317..2c4fa3d 100644
--- a/elf/dl-hwcaps.h
+++ b/elf/dl-hwcaps.h
@@ -18,14 +18,13 @@
#include <elf/dl-tunables.h>
-#ifdef SHARED
-# if HAVE_TUNABLES
-# define GET_HWCAP_MASK() \
- TUNABLE_GET (glibc, tune, hwcap_mask, uint64_t, NULL)
+#if HAVE_TUNABLES
+# define GET_HWCAP_MASK() TUNABLE_GET (glibc, tune, hwcap_mask, uint64_t, NULL)
+#else
+# ifdef SHARED
+# define GET_HWCAP_MASK() GLRO(dl_hwcap_mask)
# else
-# define GET_HWCAP_MASK() GLRO(dl_hwcap_mask)
+/* HWCAP_MASK is ignored in static binaries when built without tunables. */
+# define GET_HWCAP_MASK() (0)
# endif
-#else
-/* HWCAP_MASK is ignored in static binaries. */
-# define GET_HWCAP_MASK() (0)
#endif