| OLD | NEW |
| 1 // Copyright (c) 2006-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 #include "base/cpu.h" | 5 #include "base/cpu.h" |
| 6 | 6 |
| 7 #if defined(ARCH_CPU_X86_FAMILY) | 7 #if defined(ARCH_CPU_X86_FAMILY) |
| 8 #if defined(_MSC_VER) | 8 #if defined(_MSC_VER) |
| 9 #include <intrin.h> | 9 #include <intrin.h> |
| 10 #endif | 10 #endif |
| 11 #endif | 11 #endif |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 has_sse_ = (cpu_info[3] & 0x02000000) != 0; | 113 has_sse_ = (cpu_info[3] & 0x02000000) != 0; |
| 114 has_sse2_ = (cpu_info[3] & 0x04000000) != 0; | 114 has_sse2_ = (cpu_info[3] & 0x04000000) != 0; |
| 115 has_sse3_ = (cpu_info[2] & 0x00000001) != 0; | 115 has_sse3_ = (cpu_info[2] & 0x00000001) != 0; |
| 116 has_ssse3_ = (cpu_info[2] & 0x00000200) != 0; | 116 has_ssse3_ = (cpu_info[2] & 0x00000200) != 0; |
| 117 has_sse41_ = (cpu_info[2] & 0x00080000) != 0; | 117 has_sse41_ = (cpu_info[2] & 0x00080000) != 0; |
| 118 has_sse42_ = (cpu_info[2] & 0x00100000) != 0; | 118 has_sse42_ = (cpu_info[2] & 0x00100000) != 0; |
| 119 } | 119 } |
| 120 #endif | 120 #endif |
| 121 } | 121 } |
| 122 | 122 |
| 123 | |
| 124 | |
| 125 } // namespace base | 123 } // namespace base |
| OLD | NEW |