We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ee11bc commit 0f4a77fCopy full SHA for 0f4a77f
Source/astcenc_vecmathlib_none_4.h
@@ -412,10 +412,10 @@ ASTCENC_SIMD_INLINE vmask4 operator~(vmask4 a)
412
*/
413
ASTCENC_SIMD_INLINE unsigned int mask(vmask4 a)
414
{
415
- return ((a.m[0] >> 31) & 0x1) |
416
- ((a.m[1] >> 30) & 0x2) |
417
- ((a.m[2] >> 29) & 0x4) |
418
- ((a.m[3] >> 28) & 0x8);
+ return (a.m[0] & 0x1) |
+ (a.m[1] & 0x2) |
+ (a.m[2] & 0x4) |
+ (a.m[3] & 0x8);
419
}
420
421
/**
0 commit comments