SRSandro Rybárik@rybarix·Oct 18ef73161elegant way to check if number is power of 2cnum & (num - 1) == 01QuoteTranslate
JMJoseph Miclaus@josephmiclaus·Oct 18ca87613I'd expect a 2 somewhere in the formula, but only 1 and 0 showed up.19:32 · Oct 18, 2026 · commit ca876131QuoteTranslateReplyHide repliesSRSandro Rybárik@rybarix·Oct 18true haha 😄1TranslateReply