Back to index

numactl  2.0.8~rc4
Functions
bitops.c File Reference
#include "bitops.h"

Go to the source code of this file.

Functions

int find_first_bit (void *m, int max)

Function Documentation

int find_first_bit ( void *  m,
int  max 
)

Definition at line 4 of file bitops.c.

{
       unsigned long *mask = m;
       int i;
       for (i = 0; i < max; i++) {
              if (test_bit(i, mask))
                     break;               
       }
       return i;
}

Here is the caller graph for this function: