You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The left hand side will be always the value, while the right hand side will be the number of bits to shift.
We can add a builtin to support this operator. For example, the compiler will call the newly added builtins corresponding to the following new binary operations.
It is common to need to
<<
or>>
to manipulate a value via bit shifting.Without bit shifting, it needs to do the following:
The left hand side will be always the value, while the right hand side will be the number of bits to shift.
We can add a builtin to support this operator. For example, the compiler will call the newly added builtins corresponding to the following new binary operations.
To implement, it needs to take care two cases for the value being shifted:
The text was updated successfully, but these errors were encountered: