Instance Propertyswift 6.0.1Swift

    trailingZeroBitCount

    The number of trailing zeros in this value’s binary representation.

    var trailingZeroBitCount: Int { get }

    For example, the number -8 has three trailing zeros.

    let x = Int8(bitPattern: 0b1111_1000)
    // x == -8
    // x.trailingZeroBitCount == 3

    Other members in extension

    Types

    Typealiases

    Type members

    Instance members

    Show obsolete interfaces (1)

    Hide obsolete interfaces