Home | History | Annotate | Download | only in base

Lines Matching refs:cpu

5 #include "base/cpu.h"
15 // Tests whether we can run extended instructions represented by the CPU
17 // MMX, SSE, etc.) supported by the CPU and sees we can run them without
20 TEST(CPU, RunExtendedInstructions) {
22 // Retrieve the CPU information.
23 base::CPU cpu;
25 ASSERT_TRUE(cpu.has_mmx());
26 ASSERT_TRUE(cpu.has_sse());
27 ASSERT_TRUE(cpu.has_sse2());
40 if (cpu.has_sse3()) {
45 if (cpu.has_ssse3()) {
50 if (cpu.has_sse41()) {
55 if (cpu.has_sse42()) {
60 if (cpu.has_popcnt()) {
65 if (cpu.has_avx()) {
70 if (cpu.has_avx2()) {
88 if (cpu.has_sse3()) {
93 if (cpu.has_ssse3()) {
98 if (cpu.has_sse41()) {
103 if (cpu.has_sse42()) {
108 if (cpu.has_popcnt()) {
115 if (cpu.has_avx()) {
120 if (cpu.has_avx2()) {