rculfqueue: LGPL-ize
[urcu.git] / tests / test_uatomic.c
index 68cb6df821d5037599ef5e787f33dedf47ccc85b..5682655c47df257e0852caf86d146b6b090ecb01 100644 (file)
@@ -2,18 +2,9 @@
 #include <assert.h>
 #include <urcu/uatomic_arch.h>
 
-#if (defined(__i386__) || defined(__x86_64__))
-#define HAS_ATOMIC_BYTE
-#define HAS_ATOMIC_SHORT
-#endif
-
 struct testvals {
-#ifdef HAS_ATOMIC_BYTE
        unsigned char c;
-#endif
-#ifdef HAS_ATOMIC_SHORT
        unsigned short s;
-#endif
        unsigned int i;
        unsigned long l;
 };
@@ -52,10 +43,10 @@ do {                                                \
 
 int main(int argc, char **argv)
 {
-#ifdef HAS_ATOMIC_BYTE
+#ifdef UATOMIC_HAS_ATOMIC_BYTE
        do_test(&vals.c);
 #endif
-#ifdef HAS_ATOMIC_SHORT
+#ifdef UATOMIC_HAS_ATOMIC_SHORT
        do_test(&vals.s);
 #endif
        do_test(&vals.i);
This page took 0.022929 seconds and 4 git commands to generate.