Skip to main content

Mojo module

mask

Provides functions for bit masks.

You can import these APIs from the bit package. For example:

from std.bit.mask import is_negative

Functionsโ€‹

  • โ€‹is_negative: Get a bitmask of whether the value is negative.
  • โ€‹splat: Elementwise splat the boolean value of each element in the SIMD vector into all bits of the corresponding element in a new SIMD vector.

Was this page helpful?