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

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

by
from Hacker News on (#6N2HB)
Story ImageComments
External Content
Source RSS or Atom Feed
Feed Location https://news.ycombinator.com/rss
Feed Title Hacker News
Feed Link https://news.ycombinator.com/
Reply 0 comments