summaryrefslogtreecommitdiffstats
path: root/base/atomicops_internals_x86_msvc.h
diff options
context:
space:
mode:
authorgregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 23:24:09 +0000
committergregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 23:24:09 +0000
commit81a7e67a0dbb0133f5c016d3eb04ed1116ba6717 (patch)
tree364fc864b112b61557576df2981fb31215425344 /base/atomicops_internals_x86_msvc.h
parent51383375ef135f7f2f3b87ab58b28272e7e9d807 (diff)
downloadchromium_src-81a7e67a0dbb0133f5c016d3eb04ed1116ba6717.zip
chromium_src-81a7e67a0dbb0133f5c016d3eb04ed1116ba6717.tar.gz
chromium_src-81a7e67a0dbb0133f5c016d3eb04ed1116ba6717.tar.bz2
Add 64bit support
This CL is part of a larger effort to add support for Native Client on 64-bit Windows. Review URL: http://codereview.chromium.org/360034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/atomicops_internals_x86_msvc.h')
-rw-r--r--base/atomicops_internals_x86_msvc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/base/atomicops_internals_x86_msvc.h b/base/atomicops_internals_x86_msvc.h
index 3d41e62..eacbb5e 100644
--- a/base/atomicops_internals_x86_msvc.h
+++ b/base/atomicops_internals_x86_msvc.h
@@ -159,6 +159,19 @@ inline Atomic64 Release_Load(volatile const Atomic64* ptr) {
return *ptr;
}
+inline Atomic64 Acquire_CompareAndSwap(volatile Atomic64* ptr,
+ Atomic64 old_value,
+ Atomic64 new_value) {
+ return NoBarrier_CompareAndSwap(ptr, old_value, new_value);
+}
+
+inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr,
+ Atomic64 old_value,
+ Atomic64 new_value) {
+ return NoBarrier_CompareAndSwap(ptr, old_value, new_value);
+}
+
+
#endif // defined(_WIN64)
} // namespace base::subtle