diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-23 10:15:45 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-23 10:15:45 -0500 |
commit | c758cdf4f6e959b92683f2dba6ce8617ac4f0a83 (patch) | |
tree | 36e2664048b4ba9d6925b33281afcab2a0aab53d /config/cpu/alpha/atomicity.h | |
parent | 25786b77b700abbcce664e7e39504a2b0dd1f0c8 (diff) | |
download | jack1-c758cdf4f6e959b92683f2dba6ce8617ac4f0a83.tar.gz |
uncrustification of jack source code
Diffstat (limited to 'config/cpu/alpha/atomicity.h')
-rw-r--r-- | config/cpu/alpha/atomicity.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/config/cpu/alpha/atomicity.h b/config/cpu/alpha/atomicity.h index cb071cd..66bd328 100644 --- a/config/cpu/alpha/atomicity.h +++ b/config/cpu/alpha/atomicity.h @@ -28,7 +28,7 @@ // the GNU General Public License. #ifndef _GLIBCXX_ATOMICITY_H -#define _GLIBCXX_ATOMICITY_H 1 +#define _GLIBCXX_ATOMICITY_H 1 /* @@@ With gas we can play nice .subsection games to get the non-predicted branch pointing forward. But Digital assemblers @@ -39,38 +39,38 @@ typedef int _Atomic_word; static inline _Atomic_word __attribute__ ((__unused__)) -__exchange_and_add(volatile _Atomic_word* __mem, int __val) +__exchange_and_add (volatile _Atomic_word* __mem, int __val) { - register int __result, __tmp; + register int __result, __tmp; - __asm__ __volatile__ ( - "\n$Lxadd_%=:\n\t" - "ldl_l %0,%3\n\t" - "addl %0,%4,%1\n\t" - "stl_c %1,%2\n\t" - "beq %1,$Lxadd_%=\n\t" - "mb" - : "=&r"(__result), "=&r"(__tmp), "=m"(*__mem) - : "m" (*__mem), "r"(__val)); + __asm__ __volatile__ ( + "\n$Lxadd_%=:\n\t" + "ldl_l %0,%3\n\t" + "addl %0,%4,%1\n\t" + "stl_c %1,%2\n\t" + "beq %1,$Lxadd_%=\n\t" + "mb" + : "=&r" (__result), "=&r" (__tmp), "=m" (*__mem) + : "m" (*__mem), "r" (__val)); - return __result; + return __result; } static inline void __attribute__ ((__unused__)) -__atomic_add(volatile _Atomic_word* __mem, int __val) +__atomic_add (volatile _Atomic_word* __mem, int __val) { - register _Atomic_word __result; + register _Atomic_word __result; - __asm__ __volatile__ ( - "\n$Ladd_%=:\n\t" - "ldl_l %0,%2\n\t" - "addl %0,%3,%0\n\t" - "stl_c %0,%1\n\t" - "beq %0,$Ladd_%=\n\t" - "mb" - : "=&r"(__result), "=m"(*__mem) - : "m" (*__mem), "r"(__val)); + __asm__ __volatile__ ( + "\n$Ladd_%=:\n\t" + "ldl_l %0,%2\n\t" + "addl %0,%3,%0\n\t" + "stl_c %0,%1\n\t" + "beq %0,$Ladd_%=\n\t" + "mb" + : "=&r" (__result), "=m" (*__mem) + : "m" (*__mem), "r" (__val)); } #endif /* atomicity.h */ |