-
Notifications
You must be signed in to change notification settings - Fork 38
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
ARM? #55
Comments
You'd have to rewrite the inline'd ASM for ARM, then use conditional compilation to target ARM. |
Cheers, appreciate the heads up |
In theory, Ramp should work as-is on ARM, as the inline asm isn't actually necessary (there's fallback to Rust versions already). Though performance won't be nearly as good. |
Yup :) I just found that yesterday, I managed to compile it ok, on my Raspberry Pi |
I've just found it fails a very large percentage of tests:
|
I took a quick look, and there's at least two bugs here:
|
With your first fix the tests that fail are reduced to 35:
|
@huonw I'm somewhat confused what needs to be typecasted to u64? |
I added the following to the start of if Limb::BITS == 32 {
let numer = (nh.0 as u64) << 32 | nl.0 as u64;
let denom = d.0 as u64;
let (q, r) = (numer / denom, numer % denom);
return (Limb(q as BaseInt), Limb(r as BaseInt))
} |
Thanks a lot for your help! I ran the test suite on ARM, and it passed all of them. And my ARM application using RAMP, works great now :) |
Awesome! (NB. that the fix for |
Looks like this is solved. |
Theres no easy way I presume, that I could get ramp to
work on an ARM processor I assume, due to the inline ASM?
cheers
Chris
The text was updated successfully, but these errors were encountered: