Skip to main content
Log in

Mojo 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 (SIMD[int32, 1]): The current state.

Implemented traits

AnyType

Methods

__init__

__init__(inout self: Self)

Initializes the FlushDenormals.

__enter__

__enter__(self: Self)

Enters the context. This will set denormals to zero.

__exit__

__exit__(self: Self)

Exits the context. This will restore the prior FPState.

Was this page helpful?