SRSandro Rybárik@rybarix·Oct 18ef73161elegant way to check if number is power of 2cnum & (num - 1) == 019:20 · Oct 18, 2026 · commit ef731611QuoteTranslateReplyHide repliesJMJoseph Miclaus@josephmiclaus·Oct 18I'd expect a 2 somewhere in the formula, but only 1 and 0 showed up.1TranslateReply1 reply
JMJoseph Miclaus@josephmiclaus·Oct 18I'd expect a 2 somewhere in the formula, but only 1 and 0 showed up.1TranslateReply1 reply