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
While going through the u64 module in stdlib, I noticed that some patterns of instructions are used frequently, and I'm wondering if it is worth implementing assembly instructions for them.
One such sequence is: eq.0 assert which asserts that the top of the stack is zero. An assembly instruction to do this could be called assertz.
Another such sequence is u32overflowing_madd drop which is just a wrapping version of this operation. An assembly instruction for this would be u32wrapping_madd. And for consistency, we should probably add u32wrapping_add3 as well.
The text was updated successfully, but these errors were encountered:
While going through the u64 module in stdlib, I noticed that some patterns of instructions are used frequently, and I'm wondering if it is worth implementing assembly instructions for them.
One such sequence is:
eq.0 assert
which asserts that the top of the stack is zero. An assembly instruction to do this could be calledassertz
.Another such sequence is
u32overflowing_madd drop
which is just a wrapping version of this operation. An assembly instruction for this would beu32wrapping_madd
. And for consistency, we should probably addu32wrapping_add3
as well.The text was updated successfully, but these errors were encountered: