Skip to content

Commit 0a3e061

Browse files
authored
Update cpuid_loongarch64.c
fix conditional printing of LSX/LASX status to the configuration files
1 parent 2347cdd commit 0a3e061

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpuid_loongarch64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ void get_cpuconfig(void) {
395395
}
396396
}
397397

398-
if(os_support_lsx) printf("#define HAVE_LSX\n");
399-
if(os_support_lasx) printf("#define HAVE_LASX\n");
398+
if(os_support_lsx()) printf("#define HAVE_LSX\n");
399+
if(os_support_lasx()) printf("#define HAVE_LASX\n");
400400

401401
get_cpucount(&num_cores);
402402
if (num_cores)

0 commit comments

Comments
 (0)