| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file is an internal atomic implementation, use base/atomicops.h instead. | 5 // This file is an internal atomic implementation, use base/atomicops.h instead. |
| 6 | 6 |
| 7 #ifndef BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ | 7 #ifndef BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ |
| 8 #define BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ | 8 #define BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ |
| 9 | 9 |
| 10 #define ATOMICOPS_COMPILER_BARRIER() __asm__ __volatile__("" : : : "memory") | 10 #define ATOMICOPS_COMPILER_BARRIER() __asm__ __volatile__("" : : : "memory") |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 213 } |
| 214 | 214 |
| 215 inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr, | 215 inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr, |
| 216 Atomic64 old_value, | 216 Atomic64 old_value, |
| 217 Atomic64 new_value) { | 217 Atomic64 new_value) { |
| 218 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); | 218 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); |
| 219 } | 219 } |
| 220 | 220 |
| 221 #endif // defined(__x86_64__) | 221 #endif // defined(__x86_64__) |
| 222 | 222 |
| 223 } // namespace base::subtle | 223 } // namespace subtle |
| 224 } // namespace base | 224 } // namespace base |
| 225 | 225 |
| 226 #undef ATOMICOPS_COMPILER_BARRIER | 226 #undef ATOMICOPS_COMPILER_BARRIER |
| 227 | 227 |
| 228 #endif // BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ | 228 #endif // BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ |
| OLD | NEW |