Table of Contents

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

shiftAmount int

Shift amount (位移量).

bitSize int

Bit size (位数).

Returns

int

Returns the value of shiftAmount after it has been limited (返回 shiftAmount 被限制后的值).