class MMXControl

MMX Control.

Public Fields

[more]static int mmxflag
Contains a value greater than zero if the CPU supports vectorial instructions.

Public Methods

[more]static int enable_mmx()
Detects and enable MMX or similar technologies.
[more]static int disable_mmx()
Disables MMX or similar technologies.


Documentation

MMX Control. Class MMXControl encapsulates a few static functions for globally enabling or disabling MMX support.
ostatic int enable_mmx()
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.

ostatic int disable_mmx()
Disables MMX or similar technologies. The transforms will then be performed using the baseline code.

ostatic int mmxflag
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 disable_mmx instead.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.