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

Side by Side Diff: base/atomicops_internals_x86_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_mips_gcc.h ('k') | base/atomicops_internals_x86_macosx.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ 7 #ifndef BASE_ATOMICOPS_INTERNALS_X86_GCC_H_
8 #define BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ 8 #define BASE_ATOMICOPS_INTERNALS_X86_GCC_H_
9 #pragma once
10 9
11 #include "base/base_export.h" 10 #include "base/base_export.h"
12 11
13 // This struct is not part of the public API of this module; clients may not 12 // This struct is not part of the public API of this module; clients may not
14 // use it. (However, it's exported via BASE_EXPORT because clients implicitly 13 // use it. (However, it's exported via BASE_EXPORT because clients implicitly
15 // do use it at link time by inlining these functions.) 14 // do use it at link time by inlining these functions.)
16 // Features of this x86. Values may not be correct before main() is run, 15 // Features of this x86. Values may not be correct before main() is run,
17 // but are set conservatively. 16 // but are set conservatively.
18 struct AtomicOps_x86CPUFeatureStruct { 17 struct AtomicOps_x86CPUFeatureStruct {
19 bool has_amd_lock_mb_bug; // Processor has AMD memory-barrier bug; do lfence 18 bool has_amd_lock_mb_bug; // Processor has AMD memory-barrier bug; do lfence
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 260 }
262 261
263 #endif // defined(__x86_64__) 262 #endif // defined(__x86_64__)
264 263
265 } // namespace base::subtle 264 } // namespace base::subtle
266 } // namespace base 265 } // namespace base
267 266
268 #undef ATOMICOPS_COMPILER_BARRIER 267 #undef ATOMICOPS_COMPILER_BARRIER
269 268
270 #endif // BASE_ATOMICOPS_INTERNALS_X86_GCC_H_ 269 #endif // BASE_ATOMICOPS_INTERNALS_X86_GCC_H_
OLDNEW
« no previous file with comments | « base/atomicops_internals_mips_gcc.h ('k') | base/atomicops_internals_x86_macosx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698