libvisual  0.5.0
Enumerations | Functions
VisCPU

Enumerations

enum  VisCPUType {
  VISUAL_CPU_TYPE_MIPS, VISUAL_CPU_TYPE_ALPHA, VISUAL_CPU_TYPE_SPARC, VISUAL_CPU_TYPE_X86,
  VISUAL_CPU_TYPE_POWERPC, VISUAL_CPU_TYPE_ARM, VISUAL_CPU_TYPE_OTHER
}
 Enumerate containing the different architectual types. More...
 

Functions

VisCPUType visual_cpu_get_type (void)
 Returns the processor architecture. More...
 
unsigned int visual_cpu_get_num_cores (void)
 Returns the number of processor cores. More...
 
int visual_cpu_has_mmx (void)
 Returns whether processor supports MMX instructions. More...
 
int visual_cpu_has_mmx2 (void)
 Returns whether processor supports MMX2 instructions. More...
 
int visual_cpu_has_sse (void)
 Returns whether processor supports SSE instructions. More...
 
int visual_cpu_has_sse2 (void)
 Returns whether processor supports SSE2 instructions. More...
 
int visual_cpu_has_3dnow (void)
 Returns whether processor supports 3DNow!. More...
 
int visual_cpu_has_3dnow_ext (void)
 Returns whether processor supports 3DNow! extensions. More...
 
int visual_cpu_has_altivec (void)
 Returns whether processor supports AltiVec instructions. More...
 
int visual_cpu_has_armv7 (void)
 Returns whether processor supports ARMv7. More...
 
int visual_cpu_has_vfpv3 (void)
 Returns whether processor supports the ARM VFPv3 extension. More...
 
int visual_cpu_has_neon (void)
 Returns whether processor supports the ARM NEON extension. More...
 
int visual_cpu_has_ldrex_strex (void)
 Function to retrieve if ARM LDREX and STREX instructions are supported. More...
 

Detailed Description

Enumeration Type Documentation

enum VisCPUType

Enumerate containing the different architectual types.

Enumerator
VISUAL_CPU_TYPE_MIPS 

Running on the mips architecture.

VISUAL_CPU_TYPE_ALPHA 

Running on the alpha architecture.

VISUAL_CPU_TYPE_SPARC 

Running on the sparc architecture.

VISUAL_CPU_TYPE_X86 

Running on the X86 architecture.

VISUAL_CPU_TYPE_POWERPC 

Running on the PowerPC architecture.

VISUAL_CPU_TYPE_ARM 

Running on the ARM architecture,.

VISUAL_CPU_TYPE_OTHER 

Running on an architecture that is not specified.

Definition at line 37 of file lv_cpu.h.

Function Documentation

unsigned int visual_cpu_get_num_cores ( void  )

Returns the number of processor cores.

Returns
number of processor cores

Definition at line 535 of file lv_cpu.c.

VisCPUType visual_cpu_get_type ( void  )

Returns the processor architecture.

Returns
processor architecture

Definition at line 528 of file lv_cpu.c.

int visual_cpu_has_3dnow ( void  )

Returns whether processor supports 3DNow!.

Note
Only valid for x86 processors.
Returns
TRUE if 3DNow! is supported, FALSE otherwise

Definition at line 569 of file lv_cpu.c.

int visual_cpu_has_3dnow_ext ( void  )

Returns whether processor supports 3DNow! extensions.

Note
Only valid for x86 processors
Returns
TRUE if 3DNow! extensions are supported, FALSE otherwise

Definition at line 576 of file lv_cpu.c.

int visual_cpu_has_altivec ( void  )

Returns whether processor supports AltiVec instructions.

Note
Only valid for PowerPC processors.
Returns
TRUE if AltiVec is supported, FALSE otherwise

Definition at line 583 of file lv_cpu.c.

int visual_cpu_has_armv7 ( void  )

Returns whether processor supports ARMv7.

Note
Only valid for ARM processors.
Returns
TRUE if ARMv7 is supported, FALSE otherwise

Definition at line 590 of file lv_cpu.c.

int visual_cpu_has_ldrex_strex ( void  )

Function to retrieve if ARM LDREX and STREX instructions are supported.

Note
Only valid for ARM processors.
Returns
TRUE if LDREX and STREX are supported, FALSE otherwise

Definition at line 611 of file lv_cpu.c.

int visual_cpu_has_mmx ( void  )

Returns whether processor supports MMX instructions.

Note
Only valid for x86 processors.
Returns
TRUE if MMX is supported, FALSE otherwise

Definition at line 542 of file lv_cpu.c.

int visual_cpu_has_mmx2 ( void  )

Returns whether processor supports MMX2 instructions.

Note
Only valid for x86 processors.
Returns
TRUE if MMX2 is supported, FALSE otherwise

Definition at line 549 of file lv_cpu.c.

int visual_cpu_has_neon ( void  )

Returns whether processor supports the ARM NEON extension.

Note
Only valid for ARM processors.
Returns
TRUE if NEON is supported, FALSE otherwise

Definition at line 604 of file lv_cpu.c.

int visual_cpu_has_sse ( void  )

Returns whether processor supports SSE instructions.

Note
Only valid for x86 processors.
Returns
TRUE if SSE is supported, FALSE otherwise

Definition at line 556 of file lv_cpu.c.

int visual_cpu_has_sse2 ( void  )

Returns whether processor supports SSE2 instructions.

Note
Only valid for x86 processors.
Returns
TRUE if SSE2 is supported, FALSE otherwise

Definition at line 562 of file lv_cpu.c.

int visual_cpu_has_vfpv3 ( void  )

Returns whether processor supports the ARM VFPv3 extension.

Note
Only valid for ARM processors.
Returns
TRUE if VFPv3 is supported, FALSE otherwise

Definition at line 597 of file lv_cpu.c.