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

fix allocations in div/rem for types larger than 16 bytes #48

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

EdsterG
Copy link
Contributor

@EdsterG EdsterG commented Sep 13, 2024

Since 1.11 it's no longer necessary to use BigInt in div/rem for types greater than 16 bytes. Fixes #12.

@rfourquet
Copy link
Owner

rfourquet commented Sep 16, 2024

Nice! Did you find a document about this? Skimming rapidly through LLVM 16 release notes didn't help.

@rfourquet rfourquet closed this Sep 16, 2024
@rfourquet rfourquet reopened this Sep 16, 2024
@rfourquet
Copy link
Owner

rfourquet commented Sep 16, 2024

I don't understand why tests fail when they pass locally...

EDIT: fixed by writing a separate global function, but still no idea what the problem was.

@rfourquet rfourquet merged commit 20e030c into rfourquet:master Sep 16, 2024
5 of 6 checks passed
@EdsterG EdsterG deleted the fix_allocations branch September 16, 2024 16:30
@EdsterG
Copy link
Contributor Author

EdsterG commented Sep 16, 2024

Did you find a document about this?

I did not, just randomly tried it in 1.11 and it worked. 🤷‍♂️

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.

Convert to LLVM native if possible
2 participants