• Welcome to Valhalla Legends Archive.
 

MMX

Started by Banana fanna fo fanna, September 11, 2004, 02:39 PM

Previous topic - Next topic

Banana fanna fo fanna

I'm writing some commercial-grade 3D code, and I'm going to be using MMX instructions. Is there anyone on this forum who has some knowledge and could possibly help me out if I run in to any difficulties?

Skywing

What about SSE/SSE2?

BTW, Intel's Pentium 4 && Xeon Processor Optimization Guide has some examples of that kind of thing written to use SSE2.  You should be able to freely download the PDF if you can manage to navigate Intel's developer site (good luck).

Banana fanna fo fanna

In the code I'm working with, I see a lot of #ifdef SSE, but I was told to use the extended MMX instruction set. I'm confused, what's the difference between SSE and MMX?

Skywing

Quote from: $t0rm on September 12, 2004, 10:44 AM
In the code I'm working with, I see a lot of #ifdef SSE, but I was told to use the extended MMX instruction set. I'm confused, what's the difference between SSE and MMX?

MMX uses packed 64-bit quantities, SSE uses packed 128-bit quantities (with a few extra operations available too).

SSE2 lets you use packed 64-bit floats, IIRC.

Atom

A good question would be, what do you need to do? If you are going for the most power you should see what you can do by sending memory directly to the graphics card, instead of using OGL or DX. We ARE talking assembly right?
I am back! aINC is dead, ThinkTank PRO is alive.
VB, JAVA, ASM, C, its all yummy to me.

Banana fanna fo fanna

We're talking about an ultrafast DIB->pixels and back again converter