def nonzero
import stelliferous@0.0.2.0/math_compare.bend as MathCompareimport Base
5# One for a nonzero word, zero otherwise, without a Bool match.
6def nonzero(+word: U32) -> U32:
7 U32.shrn(U32.or(word,(0 - word : U32)),31n)
import stelliferous@0.0.2.0/math_compare.bend as MathCompareimport Base
5# One for a nonzero word, zero otherwise, without a Bool match.
6def nonzero(+word: U32) -> U32:
7 U32.shrn(U32.or(word,(0 - word : U32)),31n)