-
Notifications
You must be signed in to change notification settings - Fork 174
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
[question] Is it deterministic with respect to different hardware platforms? #5
Comments
I think they should be deterministic, as only integers are used. But I'm not aware of anyone actually having tried that out. |
using |
Well, floats are also supposed to be deterministic except for rounding of intermediate products. As And anyway, a difference could only occur if the resulting fix16 value is very close to the rounding boundary. |
so the only way around issues like this would be using |
You can also do |
I'm particularly interested in using this library for deterministic calculations in a real-time online game. Maybe anyone had this use case?
I.e. I need a library which produces exactly the same results (think
memcmp()
) on x86 and ARM processors (to cover mobile and desktops).The text was updated successfully, but these errors were encountered: