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

Side by Side Diff: base/atomicops.h

Issue 57031: Add atomic operations for ARM. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/atomicops_internals_arm_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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } // namespace base::subtle 123 } // namespace base::subtle
124 } // namespace base 124 } // namespace base
125 125
126 // Include our platform specific implementation. 126 // Include our platform specific implementation.
127 #if defined(OS_WIN) && defined(COMPILER_MSVC) && defined(ARCH_CPU_X86_FAMILY) 127 #if defined(OS_WIN) && defined(COMPILER_MSVC) && defined(ARCH_CPU_X86_FAMILY)
128 #include "base/atomicops_internals_x86_msvc.h" 128 #include "base/atomicops_internals_x86_msvc.h"
129 #elif defined(OS_MACOSX) && defined(ARCH_CPU_X86_FAMILY) 129 #elif defined(OS_MACOSX) && defined(ARCH_CPU_X86_FAMILY)
130 #include "base/atomicops_internals_x86_macosx.h" 130 #include "base/atomicops_internals_x86_macosx.h"
131 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_X86_FAMILY) 131 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_X86_FAMILY)
132 #include "base/atomicops_internals_x86_gcc.h" 132 #include "base/atomicops_internals_x86_gcc.h"
133 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_ARM_FAMILY)
134 #include "base/atomicops_internals_arm_gcc.h"
133 #else 135 #else
134 #error "Atomic operations are not supported on your platform" 136 #error "Atomic operations are not supported on your platform"
135 #endif 137 #endif
136 138
137 #endif // BASE_ATOMICOPS_H_ 139 #endif // BASE_ATOMICOPS_H_
OLDNEW
« no previous file with comments | « no previous file | base/atomicops_internals_arm_gcc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698