given A 4X4 MATRIX X:

X[4][4]=X00 X01 X02 X04

X10 X11 X12 X13

X20 X21 X22 X23

X30 X31 X32 X33

IF ROW : X00 X01 X02 X04 is denoted by x0:

X10 X11 X12 X13 is denoted by x1

X20 X21 X22 X23 is denoted by x2

X30 X31 X32 X33 is denoted by x3

AND:

STAGE 1 STAGE 2

A0=X0+X3 Y0=A0+A1

A1=X1+X2 Y1=A2+A3<<1

A2=X1-X2 Y2=A0-A1

A3=X0-X3 Y3=A3-A2<<1

WHERE << DENOTES SHIFT LEFT.

HOW CAN I WRITE THE CODES using SSE/SSE2 intrinsics FOR THE ABOVE SENERIO.