Method shl
shl(Int32, Int32)
Selects the value at index i relative to the top of the stack.
Shifts the numerator value to the left (in zeros) by the specified number of bits.
Declaration
public void shl(int c, int i = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | c | The number of bits to shift. |
System.Int32 | i | A relative index of a stack entry. |
Remarks
Shifts the numerator value only, which is a fast alternative to multiplies by powers of two.
To shift the denominator is possible by calling inv(Int32) before and after.