bitmap_fold(9)

bitmap_fold9

Fold larger bitmap into smaller, modulo specified size

Usage

void bitmap_fold(unsigned long * dst, const unsigned long * orig, unsigned int sz, unsigned int nbits);

Arguments

dst

resulting smaller bitmap

orig

original larger bitmap

sz

specified size

nbits

number of bits in each of these bitmaps

Overview

For each bit oldbit in orig, set bit oldbit mod sz in dst. Clear all other bits in dst. See further the comment and Example [2] for bitmap_onto for why and how to use this.

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.