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

Investigate new .NET 6 APIs and determine if they're relevant #16

Closed
ociaw opened this issue Jan 20, 2022 · 2 comments
Closed

Investigate new .NET 6 APIs and determine if they're relevant #16

ociaw opened this issue Jan 20, 2022 · 2 comments

Comments

@ociaw
Copy link
Owner

ociaw commented Jan 20, 2022

https://devblogs.microsoft.com/dotnet/announcing-net-6/

The new BitConverter methods could be useful, and new Vector APIs could make it feasible to implement vectorized ChaCha in a instruction set agnostic manner.

@ociaw
Copy link
Owner Author

ociaw commented Jan 26, 2022

As of .NET 6, Vector<T> does not include shift operators, so we can't use it to implement ChaCha efficiently yet. However, support has been merged so the next version of .NET should support this. Shuffling may also be necessary to meet performance requirements.

@ociaw
Copy link
Owner Author

ociaw commented Feb 2, 2022

We were able to use new floating point APIs in ba17a5b to do bitwise convertion between floats and integers - we may not need unsafe in Core when targeting .NET 6 now.

@ociaw ociaw closed this as completed Feb 2, 2022
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