Skip to content
FutureBlitz

    Install

    Import std.math.bits

    Int64

    std.math.bits

    extend

    Extend Int64

    Saturating arithmetic on Int64s, which stops at the lowest and highest in place of overflowing.

    std/math/bits.fb, line 206

    • Public Method SaturatingAdd(other: Int64): Int64 method #

      The sum, or the lowest or highest Int64 in place of an overflow.

    • Public Method SaturatingSubtract(other: Int64): Int64 method #

      The difference, or the lowest or highest Int64 in place of an overflow.

    • Public Method SaturatingMultiply(other: Int64): Int64 method #

      The product, or the lowest or highest Int64 in place of an overflow.

    Report an issue with this page or with FutureBlitz on GitHub.