From: Ivan Maidanski Date: Thu, 28 Feb 2013 19:02:07 +0000 (+0400) Subject: gcc/x86.h: Add TODO items X-Git-Tag: libatomic_ops-7_4_0~35^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e33326573e9019beed702bcf6bdb1ea145bdc209;p=libatomic_ops gcc/x86.h: Add TODO items --- diff --git a/src/atomic_ops/sysdeps/gcc/x86.h b/src/atomic_ops/sysdeps/gcc/x86.h index 60bdfb3..3a3e33e 100644 --- a/src/atomic_ops/sysdeps/gcc/x86.h +++ b/src/atomic_ops/sysdeps/gcc/x86.h @@ -25,6 +25,7 @@ #include "../test_and_set_t_is_char.h" +/* TODO: Test __SSE2__ macro instead of AO_USE_PENTIUM4_INSTRS. */ #if defined(__x86_64__) && !defined(AO_USE_PENTIUM4_INSTRS) /* "mfence" (SSE2) is supported on all x86_64/amd64 chips. */ # define AO_USE_PENTIUM4_INSTRS @@ -282,6 +283,9 @@ AO_fetch_compare_and_swap_full(volatile AO_t *addr, AO_t old_val, } # define AO_HAVE_int_fetch_and_add_full +/* TODO: Implement double_load/store. */ +/* TODO: Test some gcc macro to detect presence of cmpxchg16b. */ + # ifdef AO_CMPXCHG16B_AVAILABLE # include "../standard_ao_double_t.h"