Date: Thu, 1 Jul 1999 20:12:36 -0400 From: Randall Hopper <aa8vb@ipass.net> To: Frode Vatvedt Fjeld <frodef@acm.org>, "Daniel J. O'Connor" <darius@dons.net.au>, Geff Hanoian <boing@kusanagi.boing.com> Cc: freebsd-stable@freebsd.org, multimedia@freebsd.org Subject: Re: MMX Message-ID: <19990701201236.A5532@ipass.net> In-Reply-To: <2hwvwnqh7g.fsf@dslab7.cs.uit.no>; from Frode Vatvedt Fjeld on Tue, Jun 29, 1999 at 03:17:23PM %2B0200 References: <XFMail.990630103147.darius@dons.net.au> <199906300229.TAA06545@kusanagi.boing.com> <2hwvwnqh7g.fsf@dslab7.cs.uit.no> <XFMail.990630103147.darius@dons.net.au> <2hwvwnqh7g.fsf@dslab7.cs.uit.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Frode Vatvedt Fjeld: |What is the preferred way for my application to determine if the CPU |is MMX-capable? Daniel J. O'Connor: |Use some MMX instructions and see if you catch a SIGILL or not? :) Geff Hanoian: | __asm __volatile( | ".byte 0x0f, 0xa2;" Seems like this would be perfect for the sysctl MIB. We have a few CPU-related ones already: > sysctl -a | grep -i cpu kern.ccpu: 1948 hw.ncpu: 1 What about: hw.cpu.has_mmx: 1 hw.cpu.has_3dnow: 1 hw.cpu.has_sse: 0 In leiu of that, I believe I recall reading that the SIGILL approach works on FreeBSD. Seems like Roger Hardiman uses/used MMX on FreeBSD for some of his signal processing work. You might chat with him. Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990701201236.A5532>