[haiku-development] Re: how to get CPU features like SSE, etc

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 07 Nov 2009 12:18:54 +0100

Konstantinos Margaritis <markos@xxxxxxxx> wrote:
> Is there some well-defined API that reports the hardware  
> characteristics of the CPU on Haiku?
> In particular I want to find out what SIMD extensions it supports 
> etc.  
> On Linux I can use HW_CAP from glibc -which is not really an elegant  
> solution, but it works.

Currently, the only solution is to use the get_cpuid() function from 
userland.
You can have a look at src/bin/sysinfo.c on how to retrieve the info 
you are interested in.

Bye,
   Axel.


Other related posts: