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

Function get_predefined_cpu

driver/cpu/cpu_predefined.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57static const struct cpu_info* g_prefined_table[] = {&rk3399, &a63, &rk3288, &r40, &hikey960, &apq8096};
58
59const struct cpu_info* get_predefined_cpu(const char* cpu_name)
60{
61 int table_size = sizeof(g_prefined_table) / sizeof(struct cpu_info*);
62
63 for(int i = 0; i < table_size; i++)
64 {
65 const struct cpu_info* p_info = g_prefined_table[i];
66 if(!strcmp(p_info->cpu_name, cpu_name))
67 return p_info;
68 }
69
70 return nullptr;
71}

Callers 6

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 4

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68