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

nest floating point addition and multiply operations #794

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

water111
Copy link
Collaborator

convert (* a (* b c)) to (* a b c) for addition and multiplication of floats. These will do the same order of operations in the compiler so it is safe. It's a little more restrictive than the integer nesting, but the compiler doesn't seem to play weird tricks.

Not a huge win in readability apart from a few really bad cases of adding tons and tons of things, but this is a good idea.

@water111 water111 linked an issue Aug 31, 2021 that may be closed by this pull request
@water111 water111 merged commit 41507f1 into master Aug 31, 2021
@water111 water111 deleted the w/nest-floating-point-add-multiply branch August 31, 2021 16:04
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

Successfully merging this pull request may close these issues.

[opengoal] Allow more than two inputs for + and * operators
1 participant