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

Implement safe math operations in std #718

Open
Tracked by #716
Y-Nak opened this issue May 24, 2022 · 0 comments
Open
Tracked by #716

Implement safe math operations in std #718

Y-Nak opened this issue May 24, 2022 · 0 comments

Comments

@Y-Nak
Copy link
Member

Y-Nak commented May 24, 2022

What is wrong?

Currently, the new codegen uses safe math in default, but these operations are implemented in codegen/runtime.
It'd be better to implement these operations in std.

How can it be fixed

  1. Implement safe math functions in std.
  2. In the AST -> MIR lowering, replace arithmetic operations with the corresponding function calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant