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

Handle loading of bool* correctly #228

Open
wolfv opened this issue Dec 12, 2018 · 1 comment
Open

Handle loading of bool* correctly #228

wolfv opened this issue Dec 12, 2018 · 1 comment

Comments

@wolfv
Copy link
Member

@wolfv wolfv commented Dec 12, 2018

Currently, it's not possible to load from a bool pointer.

E.g.

xt::uvector<bool> xbools(100, true);
xsimd::load_unaligned(&xbools[0])

fails with substitution errors.
Now it's actually a question what we should do here. Maybe we should map bools to batches with sizeof(bool) elements? batch<char, 8>(bool*)...

@wolfv
Copy link
Member Author

@wolfv wolfv commented Dec 12, 2018

Note I am using uvector here because std::vector uses a bitmask ... :)

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.