Uh oh!
There was an error while loading. Please reload this page.
Improve compile time abs implementation - #189
Closed
namannimmo10 wants to merge 2 commits into
Closed
Conversation
certik
reviewed
Feb 28, 2022
Uh oh!
There was an error while loading. Please reload this page.
certik
reviewed
Feb 28, 2022
Uh oh!
There was an error while loading. Please reload this page.
namannimmo10
commented
Mar 2, 2022
CollaboratorAuthor
I think you're right, we definitely need to implement a generic |
namannimmo10
commented
Mar 2, 2022
CollaboratorAuthor
I will decorate the |
certik
commented
Mar 2, 2022
Contributor
Overloads don't work in LPython yet, see #187. |
Comment on lines
+101
to
+102
| ASR::ttype_t *int_type = ASRUtils::TYPE(ASR::make_Integer_t(al, loc, 4, nullptr, 0)); | ||
| ASR::ttype_t *real_type = ASRUtils::TYPE(ASR::make_Real_t(al, loc, 8, nullptr, 0)); |
Collaborator
There was a problem hiding this comment.
Can we take the kind from args[0]'s type instead of defaulting it to 8 or 4?
CollaboratorAuthor
There was a problem hiding this comment.
Yes, we should, perhaps everywhere in the codebase.
Uh oh!
There was an error while loading. Please reload this page.
namannimmo10
commented
Mar 22, 2022
CollaboratorAuthor
This was included in #250. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.