Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #ifndef BASE_COMPILER_SPECIFIC_H_ | 5 #ifndef BASE_COMPILER_SPECIFIC_H_ |
| 6 #define BASE_COMPILER_SPECIFIC_H_ | 6 #define BASE_COMPILER_SPECIFIC_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #define typeof(x) __typeof__(x) | |
|
Nico
2014/10/30 17:02:41
See http://crbug.com/427584 for this – we shouldn'
Fabrice (no longer in Chrome)
2014/10/30 17:32:52
Done.
| |
| 11 | |
| 10 #if defined(COMPILER_MSVC) | 12 #if defined(COMPILER_MSVC) |
| 11 | 13 |
| 12 // Macros for suppressing and disabling warnings on MSVC. | 14 // Macros for suppressing and disabling warnings on MSVC. |
| 13 // | 15 // |
| 14 // Warning numbers are enumerated at: | 16 // Warning numbers are enumerated at: |
| 15 // http://msdn.microsoft.com/en-us/library/8x5x43k7(VS.80).aspx | 17 // http://msdn.microsoft.com/en-us/library/8x5x43k7(VS.80).aspx |
| 16 // | 18 // |
| 17 // The warning pragma: | 19 // The warning pragma: |
| 18 // http://msdn.microsoft.com/en-us/library/2c8f766e(VS.80).aspx | 20 // http://msdn.microsoft.com/en-us/library/2c8f766e(VS.80).aspx |
| 19 // | 21 // |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 // Macro for hinting that an expression is likely to be false. | 194 // Macro for hinting that an expression is likely to be false. |
| 193 #if !defined(UNLIKELY) | 195 #if !defined(UNLIKELY) |
| 194 #if defined(COMPILER_GCC) | 196 #if defined(COMPILER_GCC) |
| 195 #define UNLIKELY(x) __builtin_expect(!!(x), 0) | 197 #define UNLIKELY(x) __builtin_expect(!!(x), 0) |
| 196 #else | 198 #else |
| 197 #define UNLIKELY(x) (x) | 199 #define UNLIKELY(x) (x) |
| 198 #endif // defined(COMPILER_GCC) | 200 #endif // defined(COMPILER_GCC) |
| 199 #endif // !defined(UNLIKELY) | 201 #endif // !defined(UNLIKELY) |
| 200 | 202 |
| 201 #endif // BASE_COMPILER_SPECIFIC_H_ | 203 #endif // BASE_COMPILER_SPECIFIC_H_ |
| OLD | NEW |