-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement hypot.c #57
Conversation
Yes, looks good. Initially I was a bit skeptical about reusing other math.h functions in the implementation, but we already do it for others (like However, the commit name is missing the "xbox: " prefix. @XboxDev I'm not sure if GitHub allows renaming in the web-ui with "Squash and merge" for single commits, but we could try enabling that option to avoid holding back PRs like this (due to minor style issues). |
Deviates from the standard.
Which is why it's a separate function from just sqrt. |
GitHub does allows renaming in the web-ui with "Squash and merge" for single commits, which would be a lot easier then for me to do it 😅 |
Yes. We should create an issue after merge (about the precision). Here, on x86/x87, the intermediate might be calculated in higher precision (80 bits), so it probably avoids a bunch of issues (except for Eitherway, the proposed implementation is still good enough (to me): it's better than just |
Fixed |
Is there anything missing before this can progress? We are also lacking an implementation for |
Just a lack of time on my side, sorry. |
This function is required for the DevilutionX port of Diablo, see diasurgical/devilutionX#6746