diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2011-11-18 12:36:56 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-11-18 12:36:56 +0400 |
commit | 9bcbd798c7caa105ca1dbe19b44dd24a0f8ed799 (patch) | |
tree | 1208ff37483184947c5f0adb605e32e7036c55bf | |
parent | af304a218a97bdaf7027cbb1295518e0c2854193 (diff) | |
download | libatomic_ops-9bcbd798c7caa105ca1dbe19b44dd24a0f8ed799.tar.gz |
Remove "function untested" notes in code for PowerPC
* src/atomic_ops/sysdeps/gcc/powerpc.h (AO_compare_and_swap,
AO_fetch_compare_and_swap, AO_fetch_and_add): Remove FIXME.
-rw-r--r-- | src/atomic_ops/sysdeps/gcc/powerpc.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/powerpc.h b/src/atomic_ops/sysdeps/gcc/powerpc.h index b843692..43ac000 100644 --- a/src/atomic_ops/sysdeps/gcc/powerpc.h +++ b/src/atomic_ops/sysdeps/gcc/powerpc.h @@ -174,7 +174,6 @@ AO_test_and_set_full(volatile AO_TS_t *addr) { AO_t oldval; int result = 0; # if defined(__powerpc64__) || defined(__ppc64__) || defined(__64BIT__) - /* FIXME: Completely untested. */ __asm__ __volatile__( "1:ldarx %0,0,%2\n" /* load and reserve */ "cmpd %0, %4\n" /* if load is not equal to */ @@ -237,7 +236,6 @@ AO_INLINE AO_t AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val) { AO_t fetched_val; - /* FIXME: Completely untested. */ # if defined(__powerpc64__) || defined(__ppc64__) || defined(__64BIT__) __asm__ __volatile__( "1:ldarx %0,0,%1\n" /* load and reserve */ @@ -301,14 +299,13 @@ AO_fetch_and_add(volatile AO_t *addr, AO_t incr) { AO_t oldval; AO_t newval; #if defined(__powerpc64__) || defined(__ppc64__) || defined(__64BIT__) -/* FIXME: Completely untested. */ __asm__ __volatile__( "1:ldarx %0,0,%2\n" /* load and reserve */ "add %1,%0,%3\n" /* increment */ "stdcx. %1,0,%2\n" /* store conditional */ "bne- 1b\n" /* retry if lost reservation */ : "=&r"(oldval), "=&r"(newval) - : "r"(addr), "r"(incr) + : "r"(addr), "r"(incr) : "memory", "cr0"); #else __asm__ __volatile__( @@ -317,7 +314,7 @@ AO_fetch_and_add(volatile AO_t *addr, AO_t incr) { "stwcx. %1,0,%2\n" /* store conditional */ "bne- 1b\n" /* retry if lost reservation */ : "=&r"(oldval), "=&r"(newval) - : "r"(addr), "r"(incr) + : "r"(addr), "r"(incr) : "memory", "cr0"); #endif return oldval; |