~ubuntu-branches/ubuntu/saucy/numactl/saucy-proposed

« back to all changes in this revision

Viewing changes to bitops.h

  • Committer: Bazaar Package Importer
  • Author(s): Ian Wienand
  • Date: 2006-01-04 10:25:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104102527-1seu1f5eafl9iuoc
Tags: 0.9-1
* New upstream
* Most patches accepted into upstream; see upstream changelog or
  debian/patches/README in source package for history

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define BITOPS_H 1
3
3
 
4
4
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
 
5
#define BYTES_PER_LONG (sizeof(long)) 
5
6
 
6
7
#define test_bit(i,p)  ((p)[(i) / BITS_PER_LONG] &   (1UL << ((i)%BITS_PER_LONG)))
7
8
#define set_bit(i,p)   ((p)[(i) / BITS_PER_LONG] |=  (1UL << ((i)%BITS_PER_LONG)))