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 #include "base/cpu.h" | 5 #include "base/cpu.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 | 15 |
16 #if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX)) | 16 #if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX)) |
17 #include "base/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
19 #endif | 19 #endif |
20 | 20 |
21 #if defined(ARCH_CPU_X86_FAMILY) | 21 #if defined(ARCH_CPU_X86_FAMILY) |
22 #if defined(_MSC_VER) | 22 #if defined(_MSC_VER) |
23 #include <intrin.h> | 23 #include <intrin.h> |
24 #include <immintrin.h> // For _xgetbv() | 24 #include <immintrin.h> // For _xgetbv() |
25 #endif | 25 #endif |
26 #endif | 26 #endif |
27 | 27 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 if (has_sse42()) return SSE42; | 279 if (has_sse42()) return SSE42; |
280 if (has_sse41()) return SSE41; | 280 if (has_sse41()) return SSE41; |
281 if (has_ssse3()) return SSSE3; | 281 if (has_ssse3()) return SSSE3; |
282 if (has_sse3()) return SSE3; | 282 if (has_sse3()) return SSE3; |
283 if (has_sse2()) return SSE2; | 283 if (has_sse2()) return SSE2; |
284 if (has_sse()) return SSE; | 284 if (has_sse()) return SSE; |
285 return PENTIUM; | 285 return PENTIUM; |
286 } | 286 } |
287 | 287 |
288 } // namespace base | 288 } // namespace base |
OLD | NEW |