Skip to main content
Log in

Mojo struct

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

Implemented traits

AnyType, UnknownDestructibility

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.