compiler.tree.modular-arithmetic vocabulary
Factor handbook ยป Vocabulary index


Summary
Modular arithmetic optimization

Metadata
Authors:Slava Pestov, Daniel Ehrenberg


Words

Generic words
WordStack effect
compute-modular-candidates*( node -- )
only-reads-low-order?( node -- ? )
optimize-modular-arithmetic*( node -- nodes )


Symbol words
changed?
fixnum-values
modular-values


Ordinary words
WordStack effect
(compute-modular-values)( -- )
compute-modular-candidates( nodes -- )
compute-modular-values( -- )
fixnum-coercion( flags -- nodes )
fixnum-value( value -- )
fixnum-value?( value -- ? )
input-candidiate( #call -- )
like->fixnum?( #call -- ? )
like->integer?( #call -- ? )
low-order-word?( #call -- ? )
modular-value( value -- )
modular-value-info( #call -- alist )
modular-value?( value -- ? )
modular-word?( #call -- ? )
only-used-as-low-order?( value -- ? )
optimize->fixnum( #call -- nodes )
optimize->integer( #call -- nodes )
optimize-low-order-op( #call -- nodes )
optimize-modular-arithmetic( nodes -- nodes' )
optimize-modular-op( #call -- nodes )
output-candidate( #call -- )
output-modular?( #call -- ? )
redundant->fixnum?( #call -- ? )
should-be->fixnum?( #call -- ? )
small-shift?( interval -- ? )


Files


Metadata files