define MMX.h

Essential support for MMX.

o class MMXControl
MMX Control.
Files "MMX.h" and "MMX.cpp" implement basic routines for supporting the MMX instructions on x86. Future instruction sets for other processors may be supported in this file as well.

Macro MMX is defined if the compiler supports the X86-MMX instructions. It does not mean however that the processor supports the instruction set. Variable MMXControl::mmxflag must be used to decide whether MMX. instructions can be executed. MMX instructions are entered in the middle of C++ code using the following macros. Examples can be found in "IWTransform.cpp".

MMXrr( insn, srcreg, dstreg)
Encode a register to register MMX instruction (e.g. paddw or punpcklwd).
MMXar( insn, addr, dstreg )
Encode a memory to register MMX instruction (e.g. moveq from memory).
MMXra( insn, srcreg, addr )
Encode a register to memory MMX instruction (e.g. moveq to memory).
MMXir( insn, imm, dstreg )
Encode a immediate to register MMX instruction (e.g psraw).
MMXemms
Execute the EMMS instruction to reset the FPU state.

Author:
: Léon Bottou <leonb@research.att.com> -- initial implementation
Version:
$Id: MMX.h.html,v 1.12 2001/02/15 01:12:21 bcr Exp $

Alphabetic index Hierarchy of classes


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