5 #ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
6 typedef int __attribute__ ((__mode__ (__QI__))) qi_int_type;
8 __sync_bool_compare_and_swap (&qi_int, (qi_int_type)0, (qi_int_type)1);
14 #ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15 typedef int __attribute__ ((__mode__ (__HI__))) hi_int_type;
17 __sync_bool_compare_and_swap (&hi_int, (hi_int_type)0, (hi_int_type)1);
23 #ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
24 typedef int __attribute__ ((__mode__ (__SI__))) si_int_type;
26 __sync_bool_compare_and_swap (&si_int, (si_int_type)0, (si_int_type)1);
32 #ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
33 typedef int __attribute__ ((__mode__ (__DI__))) di_int_type;
35 __sync_bool_compare_and_swap (&di_int, (di_int_type)0, (di_int_type)1);
41 #ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16
42 typedef int __attribute__ ((__mode__ (__TI__))) ti_int_type;
44 __sync_bool_compare_and_swap (&ti_int, (ti_int_type)0, (ti_int_type)1);