Sign in to follow this  

Cross-platform (SIMD) Math Library?

This topic is 1850 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In the past I've used XNA Math because my engine only used DirectX, and it got the job done.

Now I'm looking port my engine to other platforms (mainly iOS with OpenGL ES) so I'm trying to find a fast cross-platform Math Library...

Or should I simply use a different library in each platform? Edited by TiagoCosta

Share this post


Link to post
Share on other sites
The linearmath module of Bullet has a NEON implementation in 2.81, (and SSE for x86) maybe that is useful for you?

I have no opinion of its general speed though.

Share this post


Link to post
Share on other sites
Although the devices both have SIMD operations, the operations are not identical nor are they interchangable. There are operations available on each that are not available on the other. The usage patterns on each are different.

If you need functions optimized for either platform you would be best to use a platform-specific library.

Share this post


Link to post
Share on other sites

Yep. There is no NEON for x86, there is no SSE for ARM. 

 

SIMD, Single Instruction Multiple Data is just the general idea of a particular sort of parallelism. Implementations differ.

Share this post


Link to post
Share on other sites

You might want to look into DirectX Math, which replaced XNA Math.  It has support for ARM NEON for Windows 8, and I have no iOS experience, but there's a chance it uses the same instructions.  If not, you might want to consider porting it.

Share this post


Link to post
Share on other sites

This topic is 1850 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this