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

enh: add intrinsics with double precision input/output #3844

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

HarshitaKalani
Copy link
Contributor

@HarshitaKalani HarshitaKalani commented Apr 10, 2024

Towards: #492

@HarshitaKalani HarshitaKalani added the intrinsic Issue or pull request specific to intrinsic function label Apr 10, 2024
@HarshitaKalani
Copy link
Contributor Author

This method makes the intrinsics with double precision input/output work but does not throw error if the arguments provided are not double precision.

@HarshitaKalani HarshitaKalani marked this pull request as ready for review April 10, 2024 14:38
{"dexp", "exp"},

{"dmin1", "min"},
{"dmax1", "max"},

{"dacos", "acos"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following comment you left, do these function only accept double precision input? If yes, let's open an issue and add error not reported The compiler should report an error but did not to it with proper description.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this was intended to make the intrinsics with specific type double precision input/output. However, this works well for intrinsics with input/output as integer like iabs. Will create an issue explaining the same.

Copy link
Contributor

@Pranavchiku Pranavchiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left comments above

@Pranavchiku Pranavchiku changed the title Add intrinsics with double precision input/output enh: add intrinsics with double precision input/output Apr 10, 2024
@Pranavchiku Pranavchiku marked this pull request as draft April 10, 2024 15:46
Copy link
Contributor

@Pranavchiku Pranavchiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good, thanks for doing it.

@Pranavchiku Pranavchiku merged commit 58d0c46 into lfortran:main Apr 10, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intrinsic Issue or pull request specific to intrinsic function
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants