Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323803
b: refs/heads/master
c: 3f34f6c
h: refs/heads/master
i:
  323801: 9c5838f
  323799: 29fd094
v: v3
  • Loading branch information
Irina Tirdea authored and Arnaldo Carvalho de Melo committed Sep 11, 2012
1 parent 9cfdec2 commit 994dfb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86d5a70c1eeb3d35bcadc94753fd9651df8835a8
refs/heads/master: 3f34f6c0233ae055b592e8f8da23d873b82070bb
4 changes: 4 additions & 0 deletions trunk/tools/perf/util/include/linux/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <linux/compiler.h>
#include <asm/hweight.h>

#ifndef __WORDSIZE
#define __WORDSIZE (__SIZEOF_LONG__ * 8)
#endif

#define BITS_PER_LONG __WORDSIZE
#define BITS_PER_BYTE 8
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
Expand Down

0 comments on commit 994dfb3

Please sign in to comment.