Hacker News new | past | comments | ask | show | jobs | submit login

Exactly. It's a bitmask, not a shift.

But he doesn't know about ctz (counting trailing zeros) for fast load/fillrate detection. With 50% it's trivial (just a shift), but for 70% or 90% you'd need to use _builtin_ctz.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: