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

[PROPOSAL] Add VectorX structs mirroring the System.Numerics Vectors #56

Open
ghost opened this issue Sep 22, 2019 · 3 comments
Open

[PROPOSAL] Add VectorX structs mirroring the System.Numerics Vectors #56

ghost opened this issue Sep 22, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 22, 2019

Numerics Vectors only support floats, we could re-create them for Doubles, ints and longs (and possibly other types?).
This would allow users to take advantage of vector instructions without having to do loads and saves themselves.

@john-h-k
Copy link
Owner

This seems a good idea, but I would keep explicit loads and stores because they have a cost

@ghost
Copy link
Author

ghost commented Sep 25, 2019

Agreed, the JIT probably optimizes this away with the built-in types but we can't count on it doing the same thing in this case (especially since we'd be explicitly calling the SSE/AVX Load/Store functions).

@john-h-k
Copy link
Owner

john-h-k commented Oct 5, 2019

I can/will/might do these, but they would just be a storage type, with proper ctors, ToString/GetHashCode/IEquatable<T>. No maths on them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant