News for hackers. Stuff that matters.
Re:Low Level Bit Hacks You Absolutely Must Know by DoofusOfDeath on Friday May 11, 2018 @07:19AM (#17046358)
> I know the bitwise trick

Only if you make certain assumptions about how the integer is represented, I reckon.

Re:Low Level Bit Hacks You Absolutely Must Know by projektfu on Friday May 11, 2018 @08:24AM (#17046729)
Indeed, a ones-complement negative number would not have this bit property.