cleanup: i386 arch detection
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 7 Dec 2021 20:22:23 +0000 (15:22 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Dec 2021 17:18:23 +0000 (12:18 -0500)
On x86-32, '__i386__' or '__i386' is always defined regardless of the
march / mtune value, simplify the detection code.

Change-Id: Icadabc60554b58d5d2611ec58f3efff9aa067dac
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/arch.h

index 2bffdbe97d8e20339d1d06ea6ccb66e79b4d366c..d3914da27d41e9caf5158b2351ccc78b4b4b8ee8 100644 (file)
@@ -64,7 +64,7 @@
 #define URCU_ARCH_AMD64 1
 #include <urcu/arch/x86.h>
 
-#elif (defined(__i386__) || defined(__i386) || defined(__i486__) || defined(__i586__) || defined(__i686__))
+#elif (defined(__i386__) || defined(__i386))
 
 #define URCU_ARCH_X86 1
 
This page took 0.026082 seconds and 4 git commands to generate.