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 precompilation on x86 #44

Merged
merged 1 commit into from
Jul 5, 2022
Merged

Fix precompilation on x86 #44

merged 1 commit into from
Jul 5, 2022

Conversation

blegat
Copy link
Contributor

@blegat blegat commented Jul 5, 2022

For 64-bit, Int and Int64 are the same so it won't change the behavior for 64-bit.
For 32-bit, it was not precompiling before and it is now so that's an improvement.

I don't expect tests will pass for 32-bit but having it precompile is a first step.

Closes #43

@@ -941,7 +941,7 @@ const quadrants_arr = [
3, 4, 0, 7, 2, 5, 1, 6,
4, 5, 7, 6, 3, 2, 0, 1,
5, 2, 6, 1, 4, 3, 7, 0]
quadrants(a::Int64, b::Int64, c::Int64, d::Int64) = (@inbounds x = quadrants_arr[1+a<<3+b<<2+c<<1+d]; x)
quadrants(a::Int, b::Int, c::Int, d::Int) = (@inbounds x = quadrants_arr[1+a<<3+b<<2+c<<1+d]; x)
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure why imposing Int64 prevents precompilation on x86?

Copy link
Member

Choose a reason for hiding this comment

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

Okay I see in the linked issue.

@sjkelly sjkelly mentioned this pull request Jul 5, 2022
@sjkelly sjkelly merged commit 5cdb9d0 into JuliaGeometry:master Jul 5, 2022
mahiki referenced this pull request in mahiki/PrefectInterfaces.jl Aug 26, 2023
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.

Support x86?
2 participants