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

Add t1ha #23

Open
leventov opened this issue Mar 13, 2017 · 3 comments
Open

Add t1ha #23

leventov opened this issue Mar 13, 2017 · 3 comments

Comments

@leventov
Copy link
Member

https://github.com/leo-yuriev/t1ha

@erthink
Copy link

erthink commented Jan 4, 2020

This is a problem, since java does not have 64-bit unsigned integers. Therefore wide multiplication (64x64 -> 128) will be unacceptably slow in java implementation.

@leventov
Copy link
Member Author

leventov commented Jan 4, 2020

There is Math.multiplyHigh(long, long) which is supposed to map onto a single x86 instruction since Java 10: https://bugs.openjdk.java.net/browse/JDK-8187684

@erthink
Copy link

erthink commented Jan 4, 2020

It is not enough, anyway something like _mymum() is needed.

The proper way is provide _umul128() for Java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants