Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New subtraction snippets #58

Open
3 tasks
Sword-Smith opened this issue Sep 27, 2023 · 0 comments
Open
3 tasks

New subtraction snippets #58

Sword-Smith opened this issue Sep 27, 2023 · 0 comments

Comments

@Sword-Smith
Copy link
Contributor

For some reason our subtraction snippets have a stack layout of lhs on top of the stack and then rhs below it. In the compiler, we first evaluate the LHS and then the RHS meaning we have to swap the operands prior to calling snippets in this standard-library. Then in the snippets contained here, we swap the operands before multiplying rhs with minus one. That's really inefficient.

  • Create new sub snippet for u32 with rhs on top of stack at function start
  • u64
  • u128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant