Merge pull request #3001 from DKubasekRA/DKubasekRA-fix-ctMask16LT

Reverted comparison in ctMask16LT
This commit is contained in:
Sean Parkinson
2020-05-28 08:24:48 +10:00
committed by GitHub

View File

@ -363,7 +363,7 @@ WC_STATIC WC_INLINE word16 ctMask16GT(int a, int b)
WC_STATIC WC_INLINE word16 ctMask16LT(int a, int b)
{
return (((word32)a - b - 1) >> 31) - 1;
return (((word32)b - a - 1) >> 31) - 1;
}
WC_STATIC WC_INLINE word16 ctMask16Eq(int a, int b)