summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaamoun TK <maamoun.tk@googlemail.com>2020-12-21 16:00:23 +0100
committerMaamoun TK <maamoun.tk@googlemail.com>2020-12-21 16:00:23 +0100
commitdb467660a1cbbd2bc65b8c09fc93546a9f391ae4 (patch)
treed6b342fb8f64718398a7a6cbb160e8e91a2efc31
parent2b75b5eed461dd21f126a2fd01eb957d0d71b891 (diff)
downloadnettle-db467660a1cbbd2bc65b8c09fc93546a9f391ae4.tar.gz
combine preprocessor directives to reduce nesting of conditions in fat-ppc.c
-rw-r--r--fat-ppc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/fat-ppc.c b/fat-ppc.c
index 365d4d9b..c7f0d11a 100644
--- a/fat-ppc.c
+++ b/fat-ppc.c
@@ -42,12 +42,11 @@
#if defined(_AIX)
# include <sys/systemcfg.h>
-#elif defined(__linux__)
-# if defined(__GLIBC__) && defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
-# define USE_GETAUXVAL 1
-# include <asm/cputable.h>
-# include <sys/auxv.h>
-# endif
+#elif defined(__linux__) && defined(__GLIBC__) && \
+ defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
+# define USE_GETAUXVAL 1
+# include <asm/cputable.h>
+# include <sys/auxv.h>
#elif defined(__FreeBSD__)
# include <machine/cpu.h>
# ifdef PPC_FEATURE2_HAS_VEC_CRYPTO
@@ -119,7 +118,7 @@ get_ppc_features (struct ppc_features *features)
#else
unsigned long hwcap = 0;
unsigned long hwcap2 = 0;
-# if defined(__linux__) && USE_GETAUXVAL
+# if USE_GETAUXVAL
hwcap = getauxval(AT_HWCAP);
hwcap2 = getauxval(AT_HWCAP2);
# elif defined(__FreeBSD__)