MCPcopy Create free account
hub / github.com/OAID/Tengine / get_target_line

Function get_target_line

driver/cpu/cpu_probe.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160#ifdef __ARM_ARCH
161
162static char* get_target_line(FILE* fp, const char* target_prefix)
163{
164 static char line[256];
165
166 while(fgets(line, 256, fp))
167 {
168 if(!memcmp(line, target_prefix, strlen(target_prefix)))
169 return line;
170 }
171
172 return nullptr;
173}
174
175static int get_cpu_model_arch(int id, struct cpu_cluster* cluster)
176{

Callers 1

get_cpu_model_archFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected