Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kwillets
on Aug 17, 2025
|
parent
|
context
|
favorite
| on:
Counting Words at SIMD Speed
I think you can just xor the whitespace mask with the shifted one.
Also, when counting 0xFF bytes from a boolean etc., sub the mask; 0xFF == -1.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Also, when counting 0xFF bytes from a boolean etc., sub the mask; 0xFF == -1.