Skip to content

Commit d1c2528

Browse files
author
zanpeeters
committed
Add L1_DATA_LINESIZE for ifdef __APPLE__
1 parent 7b66330 commit d1c2528

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpuid_arm64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ void get_cpuconfig(void)
702702
printf("#define L1_CODE_SIZE %lld \n",value64);
703703
sysctlbyname("hw.cachelinesize",&value64,&length64,NULL,0);
704704
printf("#define L1_CODE_LINESIZE %lld \n",value64);
705+
printf("#define L1_DATA_LINESIZE %lld \n",value64);
705706
sysctlbyname("hw.l1dcachesize",&value64,&length64,NULL,0);
706707
printf("#define L1_DATA_SIZE %lld \n",value64);
707708
sysctlbyname("hw.l2cachesize",&value64,&length64,NULL,0);

0 commit comments

Comments
 (0)