OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef INCLUDE_LIBYUV_CPU_ID_H_ // NOLINT | 11 #ifndef INCLUDE_LIBYUV_CPU_ID_H_ // NOLINT |
12 #define INCLUDE_LIBYUV_CPU_ID_H_ | 12 #define INCLUDE_LIBYUV_CPU_ID_H_ |
13 | 13 |
14 #include "libyuv/basic_types.h" | 14 #include "basic_types.h" |
15 | 15 |
16 #ifdef __cplusplus | 16 #ifdef __cplusplus |
17 namespace libyuv { | 17 namespace libyuv { |
18 extern "C" { | 18 extern "C" { |
19 #endif | 19 #endif |
20 | 20 |
21 // Internal flag to indicate cpuid requires initialization. | 21 // Internal flag to indicate cpuid requires initialization. |
22 static const int kCpuInitialized = 0x1; | 22 static const int kCpuInitialized = 0x1; |
23 | 23 |
24 // These flags are only valid on ARM processors. | 24 // These flags are only valid on ARM processors. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // ecx is typically the cpu number, and should normally be zero. | 71 // ecx is typically the cpu number, and should normally be zero. |
72 LIBYUV_API | 72 LIBYUV_API |
73 void CpuId(uint32 eax, uint32 ecx, uint32* cpu_info); | 73 void CpuId(uint32 eax, uint32 ecx, uint32* cpu_info); |
74 | 74 |
75 #ifdef __cplusplus | 75 #ifdef __cplusplus |
76 } // extern "C" | 76 } // extern "C" |
77 } // namespace libyuv | 77 } // namespace libyuv |
78 #endif | 78 #endif |
79 | 79 |
80 #endif // INCLUDE_LIBYUV_CPU_ID_H_ NOLINT | 80 #endif // INCLUDE_LIBYUV_CPU_ID_H_ NOLINT |
OLD | NEW |