Handbook
Glossary
with-denormal-mode ( mode quot -- )
Controlling the floating-point environment
Prev:
denormal-mode ( -- mode )
Vocabulary
math
.
floats
.
env
Inputs
mode
a
fp-denormal-mode
quot
a
quotation
Outputs
None
Word description
Sets the floating-point denormal mode to
mode
for the dynamic extent of
quot
, restoring the denormal mode to its original value on
quot
's completion.
See also
denormal-mode
Definition
USING:
continuations
math.floats.env.private
;
IN:
math.floats.env
::
with-denormal-mode
( mode quot -- )
denormal-mode
:>
orig mode
set-denormal-mode
quot
[
orig
set-denormal-mode
]
finally
;
inline