OverflowBehavior

public enum OverflowBehavior : Sendable

The result of overflow during mathematical operations.

  • Overflow is ignored.

    This value is the default, and is thus omitted from Builtin function names (e.g. Builtin.add_i32).

    Declaration

    Swift

    case ignore
  • nuw

    The result is a poison value should unsigned overflow occur.

    Declaration

    Swift

    case nuw
  • nsw

    The result is a poison value should signed overflow occur.

    Declaration

    Swift

    case nsw