Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Doesn't that give you numbers which are a power of two? ie, x&(x-1) is zero if x is a power of two?


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: