two cases of use casts instead of anding with when extracting 16bit values

git-svn-id: trunk@28615 -
This commit is contained in:
Károly Balogh 2014-09-07 23:38:33 +00:00
parent 05e72f52c6
commit 8d98f31afc

View File

@ -1323,9 +1323,9 @@ Var
aHigh, aLow, bHigh, bLow: bits16;
z0, zMiddleA, zMiddleB, z1: bits32;
Begin
aLow := a and $ffff;
aLow := bits16(a);
aHigh := a shr 16;
bLow := b and $ffff;
bLow := bits16(b);
bHigh := b shr 16;
z1 := ( bits32( aLow) ) * bLow;
zMiddleA := ( bits32 (aLow) ) * bHigh;