-
Notifications
You must be signed in to change notification settings - Fork 29
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
ideas for more efficient arithmetic on 64 bit #20
Comments
Thanks for the ideas @cfbolz and @arigo! The link doesn't seem to work, so here are the logs:
|
If I'm reading the code correctly, I think it assumes anyway that the host is 64-bit. With a 32-bit host the existing overflow detection doesn't work. In that case, the most efficient way is to use "x == intmask(r_int32(x))"... well, or at least if r_int32 existed in rarithmetic. Add it there with the line:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@arigo was suggesting some improvements to get more efficient 32bit arithmetic on 64bit machines. The IRC logs of the discussion are here:
https://github.com/cornell-brg/pydgin/issues/new
The most immediately practical idea is to write
overflow_from_add
(and..._sub
) in a branchless way, and maybe special-case them on 64bit machines.The text was updated successfully, but these errors were encountered: