Re: [AD] CPU info changes

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


[snip]

"Intel Pentium III (686, model 5 stepping 6)", which should be read as:

sscanf("%s %s (%i, model %i stepping %i", cpu_vendor, cpu_class, cpu_name, &cpu_family, &cpu_model, &cpu_stepping);


Sorry, this should be:

sscanf("%s %s %s (%i, model %i stepping %i)", cpu_vendor, cpu_class, cpu_name, &cpu_family, &cpu_model, &cpu_stepping);


Some examples:

"Intel 486 DX2 (486, model 2 stepping 3)"
"AMD Athlon Duron (686, model 5 stepping 6)"
"AMD Athlon XP (686, model 6, stepping 7)"
"Intel Pentium 4 (786, model x, steppin x)"

and so on.


The string will be in ASCII, so should be treated using the regular string functions.

--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/