Skip to content

Commit 42dbaae

Browse files
dimhotepusmastercoms
authored andcommitted
ssemath: Fix RotateRight behavior as expected (a b c d -> d a b c)
Closes ValveSoftware#747
1 parent 04e78f4 commit 42dbaae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/public/mathlib/ssemath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ FORCEINLINE fltx4 RotateLeft2( const fltx4 & a )
19821982
// a b c d -> d a b c
19831983
FORCEINLINE fltx4 RotateRight( const fltx4 & a )
19841984
{
1985-
return _mm_shuffle_ps( a, a, _MM_SHUFFLE( 0, 3, 2, 1) );
1985+
return _mm_shuffle_ps( a, a, MM_SHUFFLE_REV( 3, 0, 1, 2 ) );
19861986
}
19871987

19881988
// a b c d -> c d a b

0 commit comments

Comments
 (0)