Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: base/atomicops.h

Issue 206373005: Add Arm64 atomicops to base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a64_gyp
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/atomicops_internals_arm64_gcc.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // For atomic operations on reference counts, see atomic_refcount.h. 5 // For atomic operations on reference counts, see atomic_refcount.h.
6 // For atomic operations on sequence numbers, see atomic_sequence_num.h. 6 // For atomic operations on sequence numbers, see atomic_sequence_num.h.
7 7
8 // The routines exported by this module are subtle. If you use them, even if 8 // The routines exported by this module are subtle. If you use them, even if
9 // you get the code right, it will depend on careful reasoning about atomicity 9 // you get the code right, it will depend on careful reasoning about atomicity
10 // and memory ordering; it will be less readable, and harder to maintain. If 10 // and memory ordering; it will be less readable, and harder to maintain. If
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Include our platform specific implementation. 140 // Include our platform specific implementation.
141 #if defined(THREAD_SANITIZER) 141 #if defined(THREAD_SANITIZER)
142 #include "base/atomicops_internals_tsan.h" 142 #include "base/atomicops_internals_tsan.h"
143 #elif defined(OS_WIN) && defined(COMPILER_MSVC) && defined(ARCH_CPU_X86_FAMILY) 143 #elif defined(OS_WIN) && defined(COMPILER_MSVC) && defined(ARCH_CPU_X86_FAMILY)
144 #include "base/atomicops_internals_x86_msvc.h" 144 #include "base/atomicops_internals_x86_msvc.h"
145 #elif defined(OS_MACOSX) 145 #elif defined(OS_MACOSX)
146 #include "base/atomicops_internals_mac.h" 146 #include "base/atomicops_internals_mac.h"
147 #elif defined(OS_NACL) 147 #elif defined(OS_NACL)
148 #include "base/atomicops_internals_gcc.h" 148 #include "base/atomicops_internals_gcc.h"
149 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_ARM_FAMILY) 149 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_ARMEL)
150 #include "base/atomicops_internals_arm_gcc.h" 150 #include "base/atomicops_internals_arm_gcc.h"
151 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_ARM64)
152 #include "base/atomicops_internals_arm64_gcc.h"
151 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_X86_FAMILY) 153 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_X86_FAMILY)
152 #include "base/atomicops_internals_x86_gcc.h" 154 #include "base/atomicops_internals_x86_gcc.h"
153 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_MIPS_FAMILY) 155 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_MIPS_FAMILY)
154 #include "base/atomicops_internals_mips_gcc.h" 156 #include "base/atomicops_internals_mips_gcc.h"
155 #else 157 #else
156 #error "Atomic operations are not supported on your platform" 158 #error "Atomic operations are not supported on your platform"
157 #endif 159 #endif
158 160
159 // On some platforms we need additional declarations to make 161 // On some platforms we need additional declarations to make
160 // AtomicWord compatible with our other Atomic* types. 162 // AtomicWord compatible with our other Atomic* types.
161 #if defined(OS_MACOSX) || defined(OS_OPENBSD) 163 #if defined(OS_MACOSX) || defined(OS_OPENBSD)
162 #include "base/atomicops_internals_atomicword_compat.h" 164 #include "base/atomicops_internals_atomicword_compat.h"
163 #endif 165 #endif
164 166
165 #endif // BASE_ATOMICOPS_H_ 167 #endif // BASE_ATOMICOPS_H_
OLDNEW
« no previous file with comments | « no previous file | base/atomicops_internals_arm64_gcc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698