mmx matrix methods

Posted on 1998-06-17
Last Modified: 2013-12-03
I work in fluid dynamics. I have a Windows NT/W95 product that is heavy into number crunching, matrix methods to be exact. Someone mentioned to me that I should investigate tools or functionality available to me via mmx technology that might give me some gains in run times. I have no idea what mmx technology is or what it might give me or even where to look. Is this an API? Can anybody tell me if and where I should be looking or whether this is a dead end.


Dave P
Question by:dave_p
  • 2
  • 2

Accepted Solution

tvarhe earned 50 total points
ID: 1408106
MMX is a set of new commands and registers found in newer Intel/AMD/Cyrix etc... chips that can be used e.g. to speed up graphics, video, animation, audio etc. MMX comes from MultiMedia eXtensions. It has new data types (packed byte, packed word, packed doubleword, quadword) and new methods to manipulate these. You can find a lot more info at

Author Comment

ID: 1408107
Thanks for the info. Is mmx technology applicable to general numerical methods or just to multimedia applications?

Dave P
LVL 11

Expert Comment

ID: 1408108
Here's a more correct explanation:

MMX is Intel's implementation of an architecture that allows the processor to compute an operation on multiple integer arguments in parallel (outside the Intel world it is known as "Single Instruction Multiple Data" -- SIMD).

MMX works by aliasing the floating-point registers to MMX registers (therefore you cannot intermix FP and MMX (integer) operations, you have to "switch modes").

Each MMX register is 64-bits but can also be used as 2 32-bit, 4 16-bit or 8 8-bit registers that operate in parallel.
For example you could simultaneously perform eight X1 = X2 * X3 + X4 operations when each Xn is an 8-bit integer.

Intel's competitors (AMD, Cytix) implemented a similar architecture, some with enhancements (such as a separate block of registers for MMX, etc.)

MMX can be translated as MultiMedia eXtentions (they usually involve lots of small int operations), Matrix Math eXtentions (which they really are) or, my favorite, Much More eXpensive (which, after the price cuts, is no longer true).

Now to answer your questions specifically:

Either you have a processor that implements MMX or you don't.  You cannot "add" MMX functionality to a processor.  If your app uses MMX commands it may run faster on an MMX processor but not at all on a non-MMX one.

MMX can speed up algebraic operation on integers but have no benefit for floating point operations.

As MMX is a "low-level" architecture, usually you do not utilize it directly (unless you're into assembly programming).  Instead you get a compiler that can do MMX optimizations and invoke it with the appropriate switches.

A Pentium with MMX is actually faster than one without MMX even for software that does not use MMX operations because its internal cache is twice the size.

Finally, you're better off finding a better optimized numeric library.

If you think this is a good answer, you know what to do...

Author Comment

ID: 1408109
LVL 11

Expert Comment

ID: 1408110
Oh well, you win some and you lose some...

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now