math.bitwise vocabulary
Factor handbook > Vocabulary index


Documentation
Additional bitwise arithmetic

Meta-data
Authors:Slava Pestov, Doug Coleman


Words

Tuple classes
ClassSuperclassSlots
bit-range-error tuplex high low


Generic words
WordStack effect
bit-count( obj -- n )


Macro words
WordStack effect
bitfield( bitspec -- quot )


Ordinary words
WordStack effect
>even( m -- n )
>odd( m -- n )
>signed( x n -- y )
W*( x y -- z )
W+( x y -- z )
W-( x y -- z )
bit-length( x -- n )
bit-range( x high low -- y )
bit-range-error( x high low -- * )
bitroll( x s w -- y )
bitroll-32( m s -- n )
bitroll-64( m s -- n )
bits( m n -- m' )
clear-bit( x n -- y )
even-parity?( obj -- ? )
mask( x n -- y )
mask-bit( m n -- m' )
mask?( x n -- ? )
next-even( m -- n )
next-odd( m -- n )
odd-parity?( obj -- ? )
on-bits( m -- n )
set-bit( x n -- y )
shift-mod( m s w -- n )
symbols>flags( symbols assoc -- flag-bits )
toggle-bit( m n -- m' )
unmask( x n -- y )
unmask?( x n -- ? )
w*( x y -- z )
w+( x y -- z )
w-( x y -- z )
wrap( m n -- m' )


Class predicate words
WordStack effect
bit-range-error?( object -- ? )


Files


Children
VocabularySummary
math.bitwise.privatemath.bitwise.private vocabulary