ProtoFlux:Shift Right

From Resonite Wiki
Revision as of 18:20, 29 June 2024 by Yosh (talk | contribs) (clarify the arithmetic/logical shift thingy and cleanup)
> >
A
*
Shift
Boolean

The Shift Right node shifts every bit of the input bool vector or integer to the right.

Inputs

A (Pseudo-Generic)

The value to shift.

Shift (int)

The amount to shift A to the right. 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. If the type of A is a signed type, such as Type:Int or Type:Long, this node performs an arithmetic shift on A. Otherwise, it performs a logical shift on A

Further Reading

Videos

See Also