Replies: 1 comment 1 reply
-
I'd recommend reading our vectorization guidelines.
Depends on what you need, typically, it's expected to check some specific ISAs (or VectorX) IsAccelerated property and use completely different path for the whole algorithm if target platforms doesn't support needed SIMD. Sometimes it's ok to provide a software fallback for some SIMD API if it's not accelerated while the rest are OK.
Just created them in place with
Generally, it's better to use the generic (aka crossplat) APIs to get ARM acceleration for free
Correct |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new to c# SIMD and I would like to create some kind of SimdHelper with new functions that I could use with Vector128.
Basically, I want to port code from DirectXMath, or my custom C++ functions to use with Vector128...
What would be the recommanded what to do that.
Here an example of what I would like to do:
Is the function prototype ok?
I am not sure how to deal with the last else case. Do I have to store the input vector into an array, do the operation on the array, and reload the array to result the result? Is there a cleaner more recommanded way?
What if I need constant into the function such as mask? Is that ok to do that:
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions