Handbook
Glossary
odd-parity? ( obj -- ? )
Factor handbook
»
The language
»
Numbers
»
Arithmetic
»
Bitwise arithmetic
»
Additional bitwise arithmetic
Prev:
even-parity? ( obj -- ? )
Next:
wrap ( m n -- m' )
Vocabulary
math
.
bitwise
Inputs
obj
an
object
Outputs
?
a
boolean
Word description
Returns true if the number of set bits in an object is odd.
Definition
USING:
math
;
IN:
math.bitwise
:
odd-parity?
( obj -- ? )
bit-count
odd?
;