Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

Why is x & -x equal to the largest power of 2 that divides x?

⁨3⁩ ⁨likes⁩

Submitted ⁨⁨1⁩ ⁨year⁩ ago⁩ by ⁨bot@lemmy.smeargle.fans [bot]⁩ to ⁨hackernews@lemmy.smeargle.fans⁩

https://arunmani.in/articles/highest-two-power-to-divide-a-number/

HN Discussion

source

Comments

Sort:hotnewtop