cpu_capabilities man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

cpu_capabilities(3)		Allegro manual		   cpu_capabilities(3)

NAME
       cpu_capabilities	 -  Contains  the capability flags of the CPU. Allegro
       game programming library.

SYNOPSIS
       #include <allegro.h>

       extern int cpu_capabilities;

DESCRIPTION
       Contains CPU flags indicating what features are available on  the  cur‐
       rent CPU. The flags can be any combination of these:

	  CPU_ID       - Indicates that the "cpuid" instruction is
			 available. If this is set, then all Allegro CPU
			 variables are 100% reliable, otherwise there
			 may be some mistakes.
	  CPU_FPU      - An FPU is available.
	  CPU_IA64     - Running on Intel 64 bit CPU
	  CPU_AMD64    - Running on AMD 64 bit CPU
	  CPU_MMX      - Intel MMX  instruction set is available.
	  CPU_MMXPLUS  - Intel MMX+ instruction set is available.
	  CPU_SSE      - Intel SSE  instruction set is available.
	  CPU_SSE2     - Intel SSE2 instruction set is available.
	  CPU_SSE3     - Intel SSE3 instruction set is available.
	  CPU_3DNOW    - AMD 3DNow! instruction set is available.
	  CPU_ENH3DNOW - AMD Enhanced 3DNow! instruction set is
			 available.
	  CPU_CMOV     - Pentium Pro "cmov" instruction is available.

       You  can check for multiple features by OR-ing the flags together.  For
       example, to check if the CPU has an FPU and MMX instructions available,
       you'd do:

	  if ((cpu_capabilities & (CPU_FPU | CPU_MMX)) ==
	      (CPU_FPU | CPU_MMX)) {
	     printf("CPU has both an FPU and MMX instructions!\n");
	  }

       You  can read this variable after you have called check_cpu() (which is
       automatically called by allegro_init()).

SEE ALSO
       check_cpu(3), cpu_vendor(3), cpu_family(3), cpu_model(3), cpu_capabili‐
       ties(3), allegro_init(3)

Allegro				 version 4.4.2		   cpu_capabilities(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net