~ubuntu-branches/ubuntu/vivid/numactl/vivid-updates

« back to all changes in this revision

Viewing changes to bitops.c

  • Committer: Package Import Robot
  • Author(s): Ian Wienand
  • Date: 2014-09-09 21:33:32 UTC
  • mfrom: (1.3.12)
  • Revision ID: package-import@ubuntu.com-20140909213332-ph3qt0yq2ffozuky
Tags: 2.0.10~rc2-1
* Upgrade to 2.0.10-rc2
* Remove 001_no_numa.patch; fixed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "bitops.h"
2
 
 
3
 
/* extremly dumb */
4
 
int find_first_bit(void *m, int max)
5
 
{
6
 
        unsigned long *mask = m;
7
 
        int i;
8
 
        for (i = 0; i < max; i++) {
9
 
                if (test_bit(i, mask))
10
 
                        break;                  
11
 
        }
12
 
        return i;
13
 
}