The best way to use SSE is to use the __m128 intrinsic directly. Unfortunately Visual Studio displays the values backwards (w,z,y,x). Bleh. Here is a change to autoexp.dat to correct the order.

First comment out this line:

And add this line:

3 thoughts on “__m128

  1. This is how I declare the attributes in my Vector4 class:

    struct { float x, y, z, w; };
    __m128 vec;

    In this way you can still access individual components using v.x, v.y, etc.

Comments are closed.