API

Types

    Functions

    Documentation

    BitOperations.bclearMethod
    bclear(x::T, bit::Integer)::T where {T<:Integer}

    Returns a modified copy of x, with bit bit cleared (set to zero).

    source
    BitOperations.bflipMethod
    bflip(x::T, bit::Integer)::T where {T<:Integer}

    Returns a modified copy of x, with bit bit flipped.

    source
    BitOperations.bflipMethod
    bflip(x::T, bits::UnitRange{<:Integer})::T where {T<:Integer}

    Returns a modified copy of x, with all bits in bit range bits flipped.

    source
    BitOperations.bgetMethod
    bget(x::T, bits::UnitRange{<:Integer})::T where {T<:Integer}

    Get the value of the bit range bits of x.

    source
    BitOperations.bmaskMethod
    bmask(::Type{T}, bit::Integer)::T where {T<:Integer}

    Generates a bit mask of type T with bit bit set to one.

    source
    BitOperations.bmaskMethod
    bmask(::Type{T}, bits::UnitRange{<:Integer})::T where {T<:Integer}

    Generates a bit mask of type T with bit-range bits set to one.

    source
    BitOperations.bsetMethod
    bset(x::T, bit::Integer, y::Bool)::T where {T<:Integer}

    Returns a modified copy of x, with bit bit set to y.

    source
    BitOperations.bsetMethod
    bset(x::T, bit::Integer)::T where {T<:Integer}

    Returns a modified copy of x, with bit bit set (to one).

    source
    BitOperations.bsetMethod
    bset(x::T, bits::UnitRange{<:Integer}, y::Integer)::T where {T<:Integer}

    Returns a modified copy of x, with bit range bits set to y.

    source
    BitOperations.lsbgetMethod
    lsbget(x::T)::T where {T <: Integer}

    Returns the value of the nbits least significant bits of x.

    source
    BitOperations.lsbmaskMethod
    lsbmask(::Type{T})::T where {T<:Integer}

    Generates a bit mask with only the least significant bit set.

    source
    BitOperations.lsbmaskMethod
    lsbmask(::Type{T}, nbits::Integer)::T where {T<:Integer}

    Generates a bit mask with only the nbits least significant bits set.

    source
    BitOperations.msbmaskMethod
    msbmask(::Type{T})::T where {T<:Integer}

    Generates a bit mask with only the most significant bit set.

    source
    BitOperations.msbmaskMethod
    msbmask(::Type{T}, nbits::Integer)::T where {T<:Integer}

    Generates a bit mask with only the nbits most significant bits set.

    source