Method GetShortestBitLength
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
GetShortestBitLength<TSelf>(TSelf)
Gets the length, in bits, of the shortest two's complement representation of the current value.
public static int GetShortestBitLength<TSelf>(TSelf value) where TSelf : IBinaryInteger<TSelf>
Parameters
value
TSelfThe value (值).
Returns
- int
The length, in bits, of the shortest two's complement representation of the current value.
Type Parameters
TSelf
Target type (目标类型).