mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +00:00
Added lots of documentation and implemented part of the detection. Added a script to check for CPU feature naming consistency
git-svn-id: https://svn.code.sf.net/p/libcpuid/code/HEAD/libcpuid@7 3b4be424-7ac5-41d7-8526-f4ddcb85d872
This commit is contained in:
parent
ce0bb2b2f0
commit
18620f1981
7 changed files with 339 additions and 56 deletions
|
@ -36,7 +36,7 @@ int main(void)
|
|||
printf(" code name : `%s'\n", data.cpu_codename);
|
||||
printf(" features :");
|
||||
int i;
|
||||
for (i = 0; i < CPU_FEATURE_END; i++)
|
||||
for (i = 0; i < CPU_NUM_FEATURES; i++)
|
||||
if (data.flags[i])
|
||||
printf(" %s", cpu_feature_str(i));
|
||||
printf("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue