Subject: Re: Checking for CPU feature from userland
To: None <port-i386@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: port-i386
Date: 04/22/2001 17:28:29
On Sun, Apr 22, 2001 at 10:25:25AM +0200, Matthias Scheler wrote:
> On Sun, Apr 22, 2001 at 01:23:14AM -0700, Ross Harvey wrote:
> > It's certainly difficult to use, yes. But being unavailable on old cpu's
> > is not a problem, since it _is_ present on any chip that has mmx. You can
> > just preset the output bits and catch any generated traps. But I guess you
> > knew all of that.
> 
> Yes, I knew. And I still consider it an overkill for only finding out
> if MMX can be turned on.
...
FWIW it's also done in png_mmx_support() in pnggccrd.c in the libpng distrib
(uses cpuid)

Cheers,

Patrick