• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

MMXControl Class Reference

MMX Control. More...

#include <MMX.h>

List of all members.


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]

Disables MMX or similar technologies.

The transforms will then be performed using the baseline code.

Definition at line 126 of file MMX.cpp.

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.

Definition at line 133 of file MMX.cpp.


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.

Definition at line 136 of file MMX.h.


The documentation for this class was generated from the following files:
  • MMX.h
  • MMX.cpp

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal