diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-23 20:17:22 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-23 20:17:22 +0000 |
commit | ac637c60998dded7d0051f17b27db78d99510f5b (patch) | |
tree | 4daa65427ce630a0a020fb9ca1d426187ab98aa3 /include/llvm/System | |
parent | 16b38426a8d255a8fc0a01bb2027a70d37d5e533 (diff) | |
download | external_llvm-ac637c60998dded7d0051f17b27db78d99510f5b.zip external_llvm-ac637c60998dded7d0051f17b27db78d99510f5b.tar.gz external_llvm-ac637c60998dded7d0051f17b27db78d99510f5b.tar.bz2 |
Revert my last series of commits related to Timer and 64-bit atomics. Not all the targets
we care about are capable of supporting it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Atomic.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/llvm/System/Atomic.h b/include/llvm/System/Atomic.h index c0612f9..c4049d4 100644 --- a/include/llvm/System/Atomic.h +++ b/include/llvm/System/Atomic.h @@ -20,14 +20,13 @@ namespace llvm { namespace sys { void MemoryFence(); - uint32_t CompareAndSwap32(volatile uint32_t* ptr, - uint32_t new_value, - uint32_t old_value); - int32_t AtomicIncrement32(volatile int32_t* ptr); - int32_t AtomicDecrement32(volatile int32_t* ptr); - int32_t AtomicAdd32(volatile int32_t* ptr, int32_t val); - - int64_t AtomicAdd64(volatile int64_t* ptr, int64_t val); + typedef uint32_t cas_flag; + cas_flag CompareAndSwap(volatile cas_flag* ptr, + cas_flag new_value, + cas_flag old_value); + cas_flag AtomicIncrement(volatile cas_flag* ptr); + cas_flag AtomicDecrement(volatile cas_flag* ptr); + cas_flag AtomicAdd(volatile cas_flag* ptr, cas_flag val); } } |