I've been looking at ways to determine the CPU, and its capabilities (e.g. SEE, SSE2, etc).
However all the ways I've found involved assembly code using the cpuid
instruction. Given the different ways of doing assembly in C/C++ between compilers and even targets (no inline assembly for 64-bit targets under VC), I'd rather avoid that.
Is there some simple library around, or OS functions (for both Windows and Linux) for getting this information?
Currently I'm only interested in platforms using the x86 and x86-64 CPU's, and I definitely need to support at least AMD and Intel.