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

all zeroes array #18

Open
vladak opened this issue Mar 23, 2021 · 0 comments
Open

all zeroes array #18

vladak opened this issue Mar 23, 2021 · 0 comments

Comments

@vladak
Copy link
Member

vladak commented Mar 23, 2021

task: find out efficiently if array of unsigned chars is all 0s
- cast to uint64_t, use XOR, go in multiplies of sizeof (uint64_t)
until the end, check the rest of bytes

vladak pushed a commit that referenced this issue Mar 23, 2021
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