This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to use addsub/addsub2

int i,j;
float* data;
float x,y;

data[j]   = data[i] + x;
data[i]   = data[i] - x;

data[j+1] = data[i+1] - y;
data[i+1] = data[i+1] + y;

Is there a way to use addsub/addsub2 to do the add and sub in parallel?