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

« back to all changes in this revision

Viewing changes to bitops.h

  • 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
 
#ifndef BITOPS_H
2
 
#define BITOPS_H 1
3
 
 
4
 
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
5
 
#define BYTES_PER_LONG (sizeof(long))
6
 
 
7
 
#define test_bit(i,p)  ((p)[(i) / BITS_PER_LONG] &   (1UL << ((i)%BITS_PER_LONG)))
8
 
#define set_bit(i,p)   ((p)[(i) / BITS_PER_LONG] |=  (1UL << ((i)%BITS_PER_LONG)))
9
 
#define clear_bit(i,p) ((p)[(i) / BITS_PER_LONG] &= ~(1UL << ((i)%BITS_PER_LONG)))
10
 
 
11
 
extern int find_first_bit(void *mask, int max);
12
 
 
13
 
#endif