[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPUID detection



Felix Kollmann wrote:

> I attached the working CPUID detection which is based on assembler
> (Linux and Windows).
> 
> PS: Am I good?

Not really.

You kludged a solution in the face of a better 'official' mechanism.

As a result, you have code that won't even compile on a significant
fraction of Linux boxes.

Doing away with such ad-hoc solutions is part of what Linux is all
about.

-- 
Steve Baker                  http://web2.airmail.net/sjbaker1
sjbaker1@airmail.net (home)  http://www.woodsoup.org/~sbaker
sjbaker@hti.com      (work)