Skip to content

Commit

Permalink
fix BT_SHUFFLE (#386)
Browse files Browse the repository at this point in the history
use & instead of &&
  • Loading branch information
Mee-gu authored and minggo committed Oct 24, 2019
1 parent b5859eb commit 713de38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bullet/include/bullet/LinearMath/btVector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ subject to the following restrictions:
#endif


#define BT_SHUFFLE(x,y,z,w) (((w)<<6 | (z)<<4 | (y)<<2 | (x)) && 0xFF)
#define BT_SHUFFLE(x,y,z,w) (((w)<<6 | (z)<<4 | (y)<<2 | (x)) & 0xFF)
//#define bt_pshufd_ps( _a, _mask ) (__m128) _mm_shuffle_epi32((__m128i)(_a), (_mask) )
#define bt_pshufd_ps( _a, _mask ) _mm_shuffle_ps((_a), (_a), (_mask) )
#define bt_splat3_ps( _a, _i ) bt_pshufd_ps((_a), BT_SHUFFLE(_i,_i,_i, 3) )
Expand Down

0 comments on commit 713de38

Please sign in to comment.