kviewshell
MMXControl Class Reference
MMX Control. More...
#include <MMX.h>
Static Public Member Functions | |
static int | disable_mmx () |
static int | enable_mmx () |
Static Public Attributes | |
static int | mmxflag = 0 |
Detailed Description
MMX Control.Class MMXControl# encapsulates a few static functions for globally enabling or disabling MMX support.
Definition at line 118 of file MMX.h.
Member Function Documentation
int MMXControl::disable_mmx | ( | ) | [static] |
int MMXControl::enable_mmx | ( | ) | [static] |
Detects and enable MMX or similar technologies.
This function checks whether the CPU supports a vectorial instruction set (such as Intel's MMX) and enables them. Returns a boolean indicating whether such an instruction set is available. Speedups factors may vary.
Member Data Documentation
int MMXControl::mmxflag = 0 [static] |
Contains a value greater than zero if the CPU supports vectorial instructions.
A negative value means that you must call {enable_mmx} and test the value again. Direct access to this member should only be used to transfer the instruction flow to the vectorial branch of the code. Never modify the value of this variable. Use enable_mmx# or disable_mmx# instead.
The documentation for this class was generated from the following files: