Vocabulary math .
bitwise Inputs Outputs Word description Returns the number of set bits as an object. This word only works on non-negative integers or objects that can be represented as a byte-array.
Examples USING: math.bitwise prettyprint ;
0xf0 bit-count .4 
USING: math.bitwise prettyprint ;
-1 32 bits bit-count .32 
USING: math.bitwise prettyprint ;
B{ 1 0 1 } bit-count .2 
Definition Methods 
        
        This documentation was generated offline from a
        load-all image.  If you want, you can also
        browse the documentation from within the UI developer tools . See
        the Factor website 
        for more information.
        
        Factor 0.101 x86.64 (2294, heads/master-63f5fcf606, Aug 26 2025 10:59:32)