The Loongson 64-bit simd optimizations has used LEXT1(LoongISA general EXTensions 1), so we must make sure loongson-mmi and loongson-ext exist at the same time.
Showing the changes to codec/common/src/cpu.cpp (1 of 1 file). Show all
Unified · Split
| @@ -331,7 +331,7 @@ static uint32_t get_cpu_flags_from_cpuinfo(void) · 330 unmodified lines | ||
| 331 | 331 | } |
| 332 | 332 | while (fgets(buf, sizeof(buf), fp)) { |
| 333 | 333 | if(!strncmp(buf, "ASEs implemented", strlen("ASEs implemented"))) { |
| 334 | − if (strstr(buf, "loongson-mmi") || strstr(buf, "loongson-ext")) { | |
| 334 | + if (strstr(buf, "loongson-mmi") && strstr(buf, "loongson-ext")) { | |
| 335 | 335 | flags |= WELS_CPU_MMI; |
| 336 | 336 | } |
| 337 | 337 | if (strstr(buf, "msa")) { |