Bit Twiddling Hacks - https://graphics.stanford.edu/~seander/bithacks.html#CopyIntegerSign
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!