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

Need explicit vector division #30

Closed
walbourn opened this issue Jun 9, 2016 · 3 comments
Closed

Need explicit vector division #30

walbourn opened this issue Jun 9, 2016 · 3 comments
Assignees

Comments

@walbourn
Copy link
Member

walbourn commented Jun 9, 2016

The original xboxmath library did not include an XMVectorDivide. It instead expected client code to use multiply-by-reciprocal. As there's an explicit divide function in SSE/SSE2, the new method is needed.

@walbourn
Copy link
Member Author

walbourn commented Jun 9, 2016

This was fixed for XNAMath 2.03

@walbourn walbourn closed this as completed Jun 9, 2016
@walbourn
Copy link
Member Author

walbourn commented Jun 9, 2016

The ARM 32-bit platform using ARMv7 does not have an explicit divide operation in ARM NEON, so XMVectorDivide is implemented with 2 iterations of Newton-Raphson refinement of the reciprocal

@walbourn walbourn self-assigned this Jun 9, 2016
@walbourn
Copy link
Member Author

walbourn commented Jun 9, 2016

ARM64 which requires ARMv8 has a new ARM NEON intrinsic vdivq_f32 which can be used to implement XMVectorDivide rather than using the multiply-by-reciprocal

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

1 participant