riot_sys

Function bf_find_first_unset

Source
pub unsafe extern "C" fn bf_find_first_unset(
    field: *const u8,
    size: size_t,
) -> c_int
Expand description

@brief Get the index of the zero bit in the field

@param[in] field The bitfield @param[in] size The number of bits in the bitfield

@return number of the first unset bit @return -1 if all bits are set