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

Friendly wrappers around loadu/storeu #2

Open
RedBeard0531 opened this issue Dec 18, 2017 · 1 comment
Open

Friendly wrappers around loadu/storeu #2

RedBeard0531 opened this issue Dec 18, 2017 · 1 comment

Comments

@RedBeard0531
Copy link

loudu/storeu_si128/256 should have overloads that takes a pointer since they are intended to load 16/32 bytes of data from an arbitrary address. It would be nice if they could also take seq/string inputs + offset (or macro it and take string[index]) and do the addring for me. It would be super nice if it did whatever magic is necessary to make loadu not require a var string and work with a normal immutable argument.

As an example of how gross this looks in the middle of code: https://github.com/RedBeard0531/advent_of_code_2017/blob/c88c4b0bf6d48d4a5d489f674658efc13e983af3/16/a16_2_sse_brute.nim#L85-L89

@jackmott
Copy link
Owner

I agree this is a good idea, I welcome PRs with or comments with ideas on how it should work. I will have some time to experiment with it eventually.

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

2 participants