centralize definition of BITS_PER_LONG
[urcu.git] / urcu / uatomic_arch_x86.h
index 666e498f326c4c3b8ce025352b3f385416dbc32b..043e616d5e0e94abac9689959c0b2416c8ee4a61 100644 (file)
 extern "C" {
 #endif 
 
-#ifndef __SIZEOF_LONG__
-#if defined(__x86_64__) || defined(__amd64__)
-#define __SIZEOF_LONG__ 8
-#else
-#define __SIZEOF_LONG__ 4
-#endif
-#endif
-
-#ifndef BITS_PER_LONG
-#define BITS_PER_LONG  (__SIZEOF_LONG__ * 8)
-#endif
-
 /*
  * Derived from AO_compare_and_swap() and AO_test_and_set_full().
  */
This page took 0.022488 seconds and 4 git commands to generate.