diff options
Diffstat (limited to 'src/atomic_ops.h')
-rw-r--r-- | src/atomic_ops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/atomic_ops.h b/src/atomic_ops.h index e468e5e..33fe00e 100644 --- a/src/atomic_ops.h +++ b/src/atomic_ops.h @@ -391,6 +391,12 @@ /* of iterations, usually one. */ #include "atomic_ops/generalize.h" +#if !defined(AO_GENERALIZE_TWICE) \ + && defined(AO_HAVE_compare_double_and_swap_double) \ + && (!defined(AO_HAVE_double_load) || !defined(AO_HAVE_double_store)) +# define AO_GENERALIZE_TWICE +#endif + #ifdef AO_T_IS_INT /* Included after the first generalization pass. */ # include "atomic_ops/sysdeps/ao_t_is_int.h" |