math.bitwise vocabulary
Factor handbook ยป Vocabulary index


Documentation
Additional bitwise arithmetic

Metadata
Tags:math
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 )
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-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 )
d>w/w( d -- w1 w2 )
even-parity?( obj -- ? )
h>b/b( h -- b1 b2 )
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 )
w>h/h( w -- h1 h2 )
wrap( m n -- m' )


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


Files


Metadata files


Children
VocabularySummary
math.bitwise.private