| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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, include base/atomicops.h | 5 // This file is an internal atomic implementation, include base/atomicops.h |
| 6 // instead. This file is for platforms that use GCC intrinsics rather than | 6 // instead. This file is for platforms that use GCC intrinsics rather than |
| 7 // platform-specific assembly code for atomic operations. | 7 // platform-specific assembly code for atomic operations. |
| 8 | 8 |
| 9 #ifndef BASE_ATOMICOPS_INTERNALS_GCC_H_ | 9 #ifndef BASE_ATOMICOPS_INTERNALS_GCC_H_ |
| 10 #define BASE_ATOMICOPS_INTERNALS_GCC_H_ | 10 #define BASE_ATOMICOPS_INTERNALS_GCC_H_ |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 Atomic32 value = *ptr; | 92 Atomic32 value = *ptr; |
| 93 MemoryBarrier(); | 93 MemoryBarrier(); |
| 94 return value; | 94 return value; |
| 95 } | 95 } |
| 96 | 96 |
| 97 inline Atomic32 Release_Load(volatile const Atomic32* ptr) { | 97 inline Atomic32 Release_Load(volatile const Atomic32* ptr) { |
| 98 MemoryBarrier(); | 98 MemoryBarrier(); |
| 99 return *ptr; | 99 return *ptr; |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace base::subtle | 102 } // namespace subtle |
| 103 } // namespace base | 103 } // namespace base |
| 104 | 104 |
| 105 #endif // BASE_ATOMICOPS_INTERNALS_GCC_H_ | 105 #endif // BASE_ATOMICOPS_INTERNALS_GCC_H_ |
| 106 | 106 |
| OLD | NEW |