IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

FlushDenormals

struct FlushDenormals

Flushes and denormals are set to zero within the context and the state is restored to the prior value on exit.

Fields

  • state (Int32): The current state.

Implemented traits

AnyType, Defaultable, ImplicitlyDestructible

Methods

__init__

__init__(out self)

Initializes the FlushDenormals.

__enter__

__enter__(self)

Enters the context. This will set denormals to zero.

__exit__

__exit__(self)

Exits the context. This will restore the prior FPState.