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

Mojo function

add_ftz

def add_ftz(a: Float32, b: Float32) -> Float32

Returns the flush-to-zero sum of two float32 values.

Args:

  • ​a (Float32): First float32 addend.
  • ​b (Float32): Second float32 addend.

Returns:

Float32

def add_ftz(a: SIMD[DType.float32, SIMDLength(2)], b: SIMD[DType.float32, SIMDLength(2)]) -> SIMD[DType.float32, SIMDLength(2)]

Returns the flush-to-zero sum of two f32x2 vectors.

Args:

Returns:

SIMD[DType.float32, SIMDLength(2)]

Was this page helpful?