/external/webrtc/talk/media/base/ |
cpuid_unittest.cc | 38 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasARM); 40 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasNEON); 42 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasX86); 44 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSE2); 46 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSSE3) [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/LinearMath/ |
btCpuFeatureUtility.h | 56 int cpuInfo[4]; 57 memset(cpuInfo, 0, sizeof(cpuInfo)); 59 __cpuid(cpuInfo, 1); 61 bool osUsesXSAVE_XRSTORE = cpuInfo[2] & (1 << 27) || false; 62 bool cpuAVXSuport = cpuInfo[2] & (1 << 28) || false; 71 if ((cpuInfo[2] & FMAFlag) == FMAFlag && (sseExt & 6) == 6) 77 if (cpuInfo[2] & SSE41Flag)
|
/system/core/libnativebridge/tests/ |
PreInitializeNativeBridge_test.cpp | 40 FILE* cpuinfo = fopen("./cpuinfo", "w"); local 41 ASSERT_NE(nullptr, cpuinfo) << strerror(errno); 42 fprintf(cpuinfo, kTestData); 43 fclose(cpuinfo); 47 // Read /proc/cpuinfo 48 FILE* proc_cpuinfo = fopen("/proc/cpuinfo", "r"); 57 ASSERT_EQ(0, unlink("./cpuinfo")) << "Error unlinking temporary file.";
|
/external/valgrind/tests/ |
mips_features.c | 21 const char *file_name = "/proc/cpuinfo"; 23 * It is based on /proc/cpuinfo, which reveals hardware configuration 43 /* Did not find string in the /proc/cpuinfo file. */ 49 int cpuinfo; local 62 cpuinfo = mipsCPUInfo(dsp); 63 if (cpuinfo == 1) { 70 cpuinfo = mipsCPUInfo(dsp2); 71 if (cpuinfo == 1) { 78 cpuinfo = mipsCPUInfo(cavium); 79 if (cpuinfo == 1) [all...] |
/external/webrtc/webrtc/system_wrappers/include/ |
cpu_info.h | 18 class CpuInfo { 23 CpuInfo() {}
|
/cts/tests/tests/os/src/android/os/cts/ |
CpuFeaturesTest.java | 58 BufferedReader br = new BufferedReader(new FileReader("/proc/cpuinfo")); 90 assertTrue("/proc/cpuinfo does not advertise required feature " + feature + " to 32-bit ARM processes", 96 assertFalse("/proc/cpuinfo advertises required feature " + feature + " to 64-bit ARM processes", 105 /* When /proc/cpuinfo is read by 32-bit ARM processes, the CPU 108 assertNotNull("Failed to read CPU architecture field from /proc/cpuinfo", 115 fail("/proc/cpuinfo reported non-integer CPU architecture " + cpuArch); 119 assertTrue("/proc/cpuinfo reported 32-bit only CPU architecture " + cpuArchInt + " on ARM64 CPU", 124 /* When /proc/cpuinfo is read by 32-bit ARM processes, the Features 128 assertNotNull("Failed to read Features field from /proc/cpuinfo", 144 /* When /proc/cpuinfo is read by 64-bit ARM processes, the Feature [all...] |
/external/webrtc/webrtc/system_wrappers/source/ |
cpu_info.cc | 17 uint32_t CpuInfo::DetectNumberOfCores() {
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
EnvironmentGetter.java | 73 Multimap<String, String> cpuInfo = propertiesFromLinuxFile("/proc/cpuinfo"); 74 propertyMap.put("host.cpus", Integer.toString(cpuInfo.get("processor").size())); 76 propertyMap.put("host.cpu.cores", describe(cpuInfo, s)); 77 propertyMap.put("host.cpu.names", describe(cpuInfo, "model name")); 78 propertyMap.put("host.cpu.cachesize", describe(cpuInfo, "cache size")); 86 private static String describe(Multimap<String, String> cpuInfo, String s) { 87 Collection<String> strings = cpuInfo.get(s);
|
/external/iptables/extensions/ |
libxt_cpu.c | 25 struct xt_cpu_info *cpuinfo = cb->data; local 29 cpuinfo->invert = true;
|
/external/skia/src/core/ |
SkUtilsArm.cpp | 39 // Instead, we must parse /proc/cpuinfo and look for the 'neon' feature. 58 // open /proc/cpuinfo 59 int fd = TEMP_FAILURE_RETRY(open("/proc/cpuinfo", O_RDONLY)); 61 SkDebugf("Could not open /proc/cpuinfo: %s\n", strerror(errno)); 73 SkDebugf("Could not read /proc/cpuinfo: %s\n", strerror(errno)); 77 SkDebugf("START /proc/cpuinfo:\n%.*s\nEND /proc/cpuinfo\n", 93 "in /proc/cpuinfo ?\n");
|
/external/webp/src/dsp/ |
cpu-features.c | 67 /* Read the content of /proc/cpuinfo into a user-provided buffer. 91 * the content of /proc/cpuinfo and return it as a heap-allocated 145 /* Count the number of occurences of a given field prefix in /proc/cpuinfo. 227 char cpuinfo[4096]; local 234 cpuinfo_len = read_file("/proc/cpuinfo", cpuinfo, sizeof cpuinfo); 236 cpuinfo_len >= 0 ? cpuinfo_len : 0, cpuinfo); 243 g_cpuCount = count_cpuinfo_field(cpuinfo, cpuinfo_len, "processor"); 245 g_cpuCount = count_cpuinfo_field(cpuinfo, cpuinfo_len, "Processor") [all...] |
/external/webrtc/webrtc/system_wrappers/source/android/ |
cpu-features.c | 67 /* Read the content of /proc/cpuinfo into a user-provided buffer. 91 * the content of /proc/cpuinfo and return it as a heap-allocated 145 /* Count the number of occurences of a given field prefix in /proc/cpuinfo. 227 char cpuinfo[4096]; local 234 cpuinfo_len = read_file("/proc/cpuinfo", cpuinfo, sizeof cpuinfo); 236 cpuinfo_len >= 0 ? cpuinfo_len : 0, cpuinfo); 243 g_cpuCount = count_cpuinfo_field(cpuinfo, cpuinfo_len, "processor"); 245 g_cpuCount = count_cpuinfo_field(cpuinfo, cpuinfo_len, "Processor") [all...] |
/external/autotest/client/bin/ |
base_utils.py | 294 """Read /proc/cpuinfo and convert to a list of dicts.""" 295 cpuinfo = [] 296 with open('/proc/cpuinfo', 'r') as f: 301 cpuinfo.append(cpu) 307 # cpuinfo usually ends in a blank line, so this shouldn't happen. 308 cpuinfo.append(cpu) 309 return cpuinfo 314 f = open('/proc/cpuinfo', 'r') 315 cpuinfo = f.readlines() 317 if list_grep(cpuinfo, '^cpu.*(RS64|POWER3|Broadband Engine)') [all...] |
/external/libmicrohttpd/m4/ |
ax_count_cpus.m4 | 45 AS_IF([test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo],[ 46 AS_IF([test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo],[ 47 CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
|
/art/runtime/arch/mips64/ |
instruction_set_features_mips64.cc | 48 // Look in /proc/cpuinfo for features we need. Only use this when we can guarantee that 52 std::ifstream in("/proc/cpuinfo"); 58 LOG(INFO) << "cpuinfo line: " << line; 66 LOG(ERROR) << "Failed to open /proc/cpuinfo";
|
/external/autotest/client/site_tests/power_ARMSettings/ |
power_ARMSettings.py | 51 cpuinfo = utils.read_file('/proc/cpuinfo') 54 match = re.search(r'ARMv[4-7]', cpuinfo) 58 logging.info(cpuinfo)
|
/external/libpng/contrib/arm-neon/ |
linux.c | 17 * pseudo-file /proc/cpuinfo. 20 * however use <stdio.h> and it assumes that /proc/cpuinfo is never localized. 27 FILE *f = fopen("/proc/cpuinfo", "rb"); 157 png_warning(png_ptr, "/proc/cpuinfo open failed");
|
/external/opencv3/platforms/android/service/engine/src/org/opencv/engine/ |
HardwareDetector.java | 97 // Return parsed cpuinfo contents 101 Scanner s = new Scanner(new File("/proc/cpuinfo")); 108 Log.d(TAG, "Failed to parse cpuinfo: " + line); 112 Log.e(TAG, "Failed to read cpuinfo");
|
/external/libopus/celt/arm/ |
armcpu.c | 96 FILE *cpuinfo; local 100 cpuinfo = fopen("/proc/cpuinfo", "r"); 102 if(cpuinfo != NULL) 108 while(fgets(buf, 512, cpuinfo) != NULL) 142 fclose(cpuinfo);
|
/external/lzma/C/ |
CpuArch.c | 101 int CPUInfo[4];
102 __cpuid(CPUInfo, function);
103 *a = CPUInfo[0];
104 *b = CPUInfo[1];
105 *c = CPUInfo[2];
106 *d = CPUInfo[3];
|
/external/libchrome/base/ |
cpu.cc | 103 // This function finds the value from /proc/cpuinfo under the key "model 106 // earler versions and is shown only once at the top of /proc/cpuinfo 112 // broken NEON unit based on these fields from cpuinfo: 127 ReadFileToString(FilePath("/proc/cpuinfo"), &contents); 204 // valid Ids in CPUInfo[0] and the CPU identification string in 207 // in a human readable form. The human readable order is CPUInfo[1] | 208 // CPUInfo[3] | CPUInfo[2]. CPUInfo[2] and CPUInfo[3] are swappe [all...] |
/external/skia/platform_tools/android/third_party/cpufeatures/ |
cpu-features.c | 39 * the "Features" field in /proc/cpuinfo. 42 * of /proc/cpuinfo to deal with newer hardware. 152 /* Read the content of /proc/cpuinfo into a user-provided buffer. 187 * the content of /proc/cpuinfo and return it as a heap-allocated 552 /* Compute the ELF HWCAP flags from the content of /proc/cpuinfo. 558 get_elf_hwcap_from_proc_cpuinfo(const char* cpuinfo, int cpuinfo_len) { 561 char* cpuArch = extract_cpuinfo_field(cpuinfo, cpuinfo_len, "CPU architecture"); 576 char* cpuFeatures = extract_cpuinfo_field(cpuinfo, cpuinfo_len, "Features"); 667 char* cpuinfo = NULL; local 676 cpuinfo_len = get_file_size("/proc/cpuinfo"); [all...] |
/external/opencv3/3rdparty/libwebp/cpu-features/ |
cpu-features.c | 37 * the "Features" field in /proc/cpuinfo. 40 * of /proc/cpuinfo to deal with newer hardware. 147 /* Read the content of /proc/cpuinfo into a user-provided buffer. 182 * the content of /proc/cpuinfo and return it as a heap-allocated 428 get_elf_hwcap(const char* cpuinfo, int cpuinfo_len) 469 // Recreate ELF hwcaps by parsing /proc/cpuinfo Features tag. 472 char* cpuFeatures = extract_cpuinfo_field(cpuinfo, cpuinfo_len, "Features"); 543 char* cpuinfo = NULL; local 552 cpuinfo_len = get_file_size("/proc/cpuinfo"); 557 cpuinfo = malloc(cpuinfo_len) [all...] |
/external/v8/src/base/ |
cpu.cc | 17 #include <sys/syspage.h> // cpuinfo 180 // Extract the information exposed by the kernel via /proc/cpuinfo. 181 class CPUInfo final { 183 CPUInfo() : datalen_(0) { 184 // Get the size of the cpuinfo file by reading it until the end. This is 187 static const char PATHNAME[] = "/proc/cpuinfo"; 201 // Read the contents of the cpuinfo file. 219 ~CPUInfo() { 224 // the content of the cpuinfo file and return it as a heap-allocated 349 // valid Ids in CPUInfo[0] and the CPU identification string i [all...] |
/external/libvpx/libvpx/third_party/libyuv/source/ |
cpu_id.cc | 131 // Assume Neon if /proc/cpuinfo is unavailable. 157 const char* file_name = "/proc/cpuinfo"; 160 // Assume DSP if /proc/cpuinfo is unavailable. 275 // For Linux, /proc/cpuinfo can be tested but without that assume Neon. 278 // For aarch64(arm64), /proc/cpuinfo's feature is not complete, e.g. no neon 286 cpu_info_ = ArmCpuCaps("/proc/cpuinfo");
|