The OpenD Programming Language

nBitsToCount

Сount bits until set bit count is reached. Works with ndslices created with mir.ndslice.topology.bitwise, mir.ndslice.allocation.bitSlice.

  1. sizediff_t nBitsToCount(Slice!(FieldIterator!(BitField!(Field, I))) bitSlice, size_t count)
    sizediff_t
    nBitsToCount
    (
    Field
    I
    )
    (,
    size_t count
    )
  2. sizediff_t nBitsToCount(Slice!(RetroIterator!(FieldIterator!(BitField!(Field, I)))) bitSlice, size_t count)

Return Value

bit count if set bit count is reached or -1 otherwise.

Meta