Updated descriptions. |
clarify and cleanup |
||
Line 13: | Line 13: | ||
|}} | |}} | ||
The '''Shift Left''' node | The '''Shift Left''' node performs a [https://en.wikipedia.org/wiki/Logical_shift logical shift] of every bit of the input bool vector or integer to the left. Shifting is the act of moving each bit of the input to the left by the shift amount, where bits that fall off the end are lost. | ||
== Inputs == | == Inputs == | ||
=== A (Pseudo-Generic) === | === A (Pseudo-Generic) === | ||
The value | The value to shift. | ||
=== Shift ([[Type:int|int]]) === | === Shift ([[Type:int|int]]) === | ||
The amount to shift | The amount to shift <code>A</code> to the left. If the type being shifted is [[Type:Long|Long]] or [[Type:Ulong]], the shift amount is determined by the lowest six bits of <code>Shift</code>. Otherwise, it is determined by the lowest five bits of <code>Shift</code>. | ||
== Outputs == | == Outputs == | ||
Line 29: | Line 29: | ||
=== * (Pseudo-Generic) === | === * (Pseudo-Generic) === | ||
The | The shifted value. | ||
== Further Reading == | == Further Reading == | ||
Line 38: | Line 38: | ||
== See Also == | == See Also == | ||
* | * [https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators Microsoft documentation on the shifting operators]. | ||
[[Category:ProtoFlux:Operators:Boolean]] | [[Category:ProtoFlux:Operators:Boolean]] |
Latest revision as of 18:29, 29 June 2024
< <
Boolean
The Shift Left node performs a logical shift of every bit of the input bool vector or integer to the left. Shifting is the act of moving each bit of the input to the left by the shift amount, where bits that fall off the end are lost.
Inputs
A (Pseudo-Generic)
The value to shift.
Shift (int)
The amount to shift A
to the left. If the type being shifted is Long or Type:Ulong, the shift amount is determined by the lowest six bits of Shift
. Otherwise, it is determined by the lowest five bits of Shift
.
Outputs
* (Pseudo-Generic)
The shifted value.