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

Side by Side Diff: base/atomicops_internals_mips_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_internals_atomicword_compat.h ('k') | base/atomicops_internals_x86_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 // 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_MIPS_GCC_H_ 9 #ifndef BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_
10 #define BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_ 10 #define BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_
11 #pragma once
12 11
13 #define ATOMICOPS_COMPILER_BARRIER() __asm__ __volatile__("" : : : "memory") 12 #define ATOMICOPS_COMPILER_BARRIER() __asm__ __volatile__("" : : : "memory")
14 13
15 namespace base { 14 namespace base {
16 namespace subtle { 15 namespace subtle {
17 16
18 // Atomically execute: 17 // Atomically execute:
19 // result = *ptr; 18 // result = *ptr;
20 // if (*ptr == old_value) 19 // if (*ptr == old_value)
21 // *ptr = new_value; 20 // *ptr = new_value;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 MemoryBarrier(); 152 MemoryBarrier();
154 return *ptr; 153 return *ptr;
155 } 154 }
156 155
157 } // namespace base::subtle 156 } // namespace base::subtle
158 } // namespace base 157 } // namespace base
159 158
160 #undef ATOMICOPS_COMPILER_BARRIER 159 #undef ATOMICOPS_COMPILER_BARRIER
161 160
162 #endif // BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_ 161 #endif // BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_
OLDNEW
« no previous file with comments | « base/atomicops_internals_atomicword_compat.h ('k') | base/atomicops_internals_x86_gcc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698