Quantcast
Viewing latest article 3
Browse Latest Browse All 7

SIMD tuning with ASM pt. 2 - Your First Dump

(here's part 1 in case you missed it)

Let's take a really, really simple program. It just adds one array of things to another. This should be a SIMD slam dunk! I will call this program blah.cpp

#include 

#define PTS 1000


int main()

{

        float x[PTS];

        float y[PTS];


        for (int i = 0; i < PTS; i++) {

                x[i] = 0.0f;    // set up some data

Viewing latest article 3
Browse Latest Browse All 7