• Home
  • Raw
  • Download

Lines Matching refs:features

37         uint32_t features = 0;  in read_cpu_features()  local
43 if (abcd[3] & (1<<25)) { features |= SkCpu:: SSE1; } in read_cpu_features()
44 if (abcd[3] & (1<<26)) { features |= SkCpu:: SSE2; } in read_cpu_features()
45 if (abcd[2] & (1<< 0)) { features |= SkCpu:: SSE3; } in read_cpu_features()
46 if (abcd[2] & (1<< 9)) { features |= SkCpu::SSSE3; } in read_cpu_features()
47 if (abcd[2] & (1<<19)) { features |= SkCpu::SSE41; } in read_cpu_features()
48 if (abcd[2] & (1<<20)) { features |= SkCpu::SSE42; } in read_cpu_features()
52 if (abcd[2] & (1<<28)) { features |= SkCpu:: AVX; } in read_cpu_features()
53 if (abcd[2] & (1<<29)) { features |= SkCpu::F16C; } in read_cpu_features()
54 if (abcd[2] & (1<<12)) { features |= SkCpu:: FMA; } in read_cpu_features()
57 if (abcd[1] & (1<<5)) { features |= SkCpu::AVX2; } in read_cpu_features()
58 if (abcd[1] & (1<<3)) { features |= SkCpu::BMI1; } in read_cpu_features()
59 if (abcd[1] & (1<<8)) { features |= SkCpu::BMI2; } in read_cpu_features()
60 if (abcd[1] & (1<<9)) { features |= SkCpu::ERMS; } in read_cpu_features()
63 if (abcd[1] & (1<<16)) { features |= SkCpu::AVX512F; } in read_cpu_features()
64 if (abcd[1] & (1<<17)) { features |= SkCpu::AVX512DQ; } in read_cpu_features()
65 if (abcd[1] & (1<<21)) { features |= SkCpu::AVX512IFMA; } in read_cpu_features()
66 if (abcd[1] & (1<<26)) { features |= SkCpu::AVX512PF; } in read_cpu_features()
67 if (abcd[1] & (1<<27)) { features |= SkCpu::AVX512ER; } in read_cpu_features()
68 if (abcd[1] & (1<<28)) { features |= SkCpu::AVX512CD; } in read_cpu_features()
69 if (abcd[1] & (1<<30)) { features |= SkCpu::AVX512BW; } in read_cpu_features()
70 if (abcd[1] & (1<<31)) { features |= SkCpu::AVX512VL; } in read_cpu_features()
73 return features; in read_cpu_features()
83 uint32_t features = 0; in read_cpu_features() local
85 if (hwcaps & kHWCAP_CRC32 ) { features |= SkCpu::CRC32; } in read_cpu_features()
86 if (hwcaps & kHWCAP_ASIMDHP) { features |= SkCpu::ASIMDHP; } in read_cpu_features()
89 for (int core = 0; features & SkCpu::ASIMDHP; core++) { in read_cpu_features()
102 features &= ~(SkCpu::ASIMDHP); in read_cpu_features()
112 features &= ~(SkCpu::ASIMDHP); in read_cpu_features()
115 return features; in read_cpu_features()
128 uint32_t features = 0; in read_cpu_features() local
131 features |= SkCpu::NEON; in read_cpu_features()
132 if (hwcaps & kHWCAP_VFPv4) { features |= SkCpu::NEON_FMA|SkCpu::VFP_FP16; } in read_cpu_features()
134 return features; in read_cpu_features()
137 #elif defined(SK_CPU_ARM32) && __has_include(<cpu-features.h>)
141 uint32_t features = 0; in read_cpu_features() local
143 if (cpu_features & ANDROID_CPU_ARM_FEATURE_NEON) { features |= SkCpu::NEON; } in read_cpu_features()
144 if (cpu_features & ANDROID_CPU_ARM_FEATURE_NEON_FMA) { features |= SkCpu::NEON_FMA; } in read_cpu_features()
145 if (cpu_features & ANDROID_CPU_ARM_FEATURE_VFP_FP16) { features |= SkCpu::VFP_FP16; } in read_cpu_features()
146 return features; in read_cpu_features()