Method LimitShiftAmountByBitSize
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
LimitShiftAmountByBitSize(int, int)
Limit shift amount to a valid range by bitSize
(根据 bitSize
将位移量限制在有效范围).
public static int LimitShiftAmountByBitSize(int shiftAmount, int bitSize)
Parameters
Returns
- int
Returns the value of
shiftAmount
after it has been limited (返回shiftAmount
被限制后的值).