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

It's also an instruction in WebAssembly, which has a pretty sparse instruction set. There are only 29 integer operations, and this is one of them. There are also "clz" and "ctz" which count leading and trailing zeroes. Other than that all the instructions are run-of-the-mill arithmetic, comparison, bitmasking and shifting.



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

Search: