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

Side by Side Diff: base/atomicops_internals_arm_gcc.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « base/atomicops.h ('k') | base/atomicops_internals_atomicword_compat.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) 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, use base/atomicops.h instead. 5 // This file is an internal atomic implementation, use base/atomicops.h instead.
6 // 6 //
7 // LinuxKernelCmpxchg and Barrier_AtomicIncrement are from Google Gears. 7 // LinuxKernelCmpxchg and Barrier_AtomicIncrement are from Google Gears.
8 8
9 #ifndef BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_ 9 #ifndef BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_
10 #define BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_ 10 #define BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_
11 #pragma once
12 11
13 namespace base { 12 namespace base {
14 namespace subtle { 13 namespace subtle {
15 14
16 // 0xffff0fc0 is the hard coded address of a function provided by 15 // 0xffff0fc0 is the hard coded address of a function provided by
17 // the kernel which implements an atomic compare-exchange. On older 16 // the kernel which implements an atomic compare-exchange. On older
18 // ARM architecture revisions (pre-v6) this may be implemented using 17 // ARM architecture revisions (pre-v6) this may be implemented using
19 // a syscall. This address is stable, and in active use (hard coded) 18 // a syscall. This address is stable, and in active use (hard coded)
20 // by at least glibc-2.7 and the Android C library. 19 // by at least glibc-2.7 and the Android C library.
21 typedef Atomic32 (*LinuxKernelCmpxchgFunc)(Atomic32 old_value, 20 typedef Atomic32 (*LinuxKernelCmpxchgFunc)(Atomic32 old_value,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 115
117 inline Atomic32 Release_Load(volatile const Atomic32* ptr) { 116 inline Atomic32 Release_Load(volatile const Atomic32* ptr) {
118 MemoryBarrier(); 117 MemoryBarrier();
119 return *ptr; 118 return *ptr;
120 } 119 }
121 120
122 } // namespace base::subtle 121 } // namespace base::subtle
123 } // namespace base 122 } // namespace base
124 123
125 #endif // BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_ 124 #endif // BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_
OLDNEW
« no previous file with comments | « base/atomicops.h ('k') | base/atomicops_internals_atomicword_compat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698