From: Ivan Maidanski Date: Tue, 12 Feb 2013 21:13:10 +0000 (+0400) Subject: TODO file: move item about sync-base primitives to aarch64.h and generic.h X-Git-Tag: libatomic_ops-7_4_0~35^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b647f3827a250a0592f22bb6b0c08b342f297a5a;p=libatomic_ops TODO file: move item about sync-base primitives to aarch64.h and generic.h --- diff --git a/TODO b/TODO index b987d36..8a95ddb 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,5 @@ == TODO tasks == -Move all primitives based on __sync intrinsic from gcc/x86.h to gcc/generic.h; -offer more sync-base alternatives if AO_USE_SYNC_BUILTINS defined. - Add C++0x ATM (atomic memory operations) layer. diff --git a/src/atomic_ops/sysdeps/gcc/aarch64.h b/src/atomic_ops/sysdeps/gcc/aarch64.h index 8e62210..7ff0db8 100644 --- a/src/atomic_ops/sysdeps/gcc/aarch64.h +++ b/src/atomic_ops/sysdeps/gcc/aarch64.h @@ -15,6 +15,8 @@ * */ +/* TODO: Remove this file, directly include headers from atomic_ops.h */ + #include "../test_and_set_t_is_ao_t.h" #include "../standard_ao_double_t.h" diff --git a/src/atomic_ops/sysdeps/gcc/generic.h b/src/atomic_ops/sysdeps/gcc/generic.h index 18a586d..27d9309 100644 --- a/src/atomic_ops/sysdeps/gcc/generic.h +++ b/src/atomic_ops/sysdeps/gcc/generic.h @@ -19,6 +19,8 @@ /* For the details, see GNU Manual, chapter 6.52 (Built-in functions */ /* for memory model aware atomic operations). */ +/* TODO: Include this file for other targets if gcc 4.7+ */ + #ifdef AO_UNIPROCESSOR /* If only a single processor (core) is used, AO_UNIPROCESSOR could */ /* be defined by the client to avoid unnecessary memory barrier. */