math.floats.env vocabulary
Factor handbook ยป Vocabulary index


Documentation
Controlling the floating-point environment

Metadata
Tags:math
Authors:Joe Groff


Words

Singleton classes
+denormal-flush+
+denormal-keep+
+fp-inexact+
+fp-invalid-operation+
+fp-overflow+
+fp-underflow+
+fp-zero-divide+
+round-down+
+round-nearest+
+round-up+
+round-zero+


Union classes
fp-denormal-mode
fp-exception
fp-rounding-mode


Ordinary words
WordStack effect
all-fp-exceptions( -- value )
clear-fp-exception-flags( -- )
collect-fp-exceptions( quot -- exceptions )
denormal-mode( -- mode )
fp-exception-flags( -- exceptions )
fp-traps( -- exceptions )
rounding-mode( -- mode )
set-fp-exception-flags( exceptions -- )
vm-error-exception-flag?( error flag -- ? )
vm-error>exception-flags( error -- exceptions )
with-denormal-mode( mode quot -- )
with-fp-traps( exceptions quot -- )
with-rounding-mode( mode quot -- )
without-fp-traps( quot -- )


Class predicate words
WordStack effect
+denormal-flush+?( object -- ? )
+denormal-keep+?( object -- ? )
+fp-inexact+?( object -- ? )
+fp-invalid-operation+?( object -- ? )
+fp-overflow+?( object -- ? )
+fp-underflow+?( object -- ? )
+fp-zero-divide+?( object -- ? )
+round-down+?( object -- ? )
+round-nearest+?( object -- ? )
+round-up+?( object -- ? )
+round-zero+?( object -- ? )
fp-denormal-mode?( object -- ? )
fp-exception?( object -- ? )
fp-rounding-mode?( object -- ? )


Files


Metadata files


Children from resource:basis
VocabularySummary
math.floats.env.ppc
math.floats.env.x86


Children
VocabularySummary
math.floats.env.private