Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24151
b: refs/heads/master
c: 2054866
h: refs/heads/master
i:
  24149: 29d0e6c
  24147: 63846bc
  24143: aac466f
v: v3
  • Loading branch information
Richard Knutsson authored and Linus Torvalds committed Mar 26, 2006
1 parent 14063a6 commit 693276e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93635133663ea3155e74a0e3645b64754a046007
refs/heads/master: 20548664aa2d98ba0ee3dde4482b0a96b9273b6f
18 changes: 0 additions & 18 deletions trunk/sound/oss/sonicvibes.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,24 +407,6 @@ static inline unsigned ld2(unsigned int x)
return r;
}

/*
* hweightN: returns the hamming weight (i.e. the number
* of bits set) of a N-bit word
*/

#ifdef hweight32
#undef hweight32
#endif

static inline unsigned int hweight32(unsigned int w)
{
unsigned int res = (w & 0x55555555) + ((w >> 1) & 0x55555555);
res = (res & 0x33333333) + ((res >> 2) & 0x33333333);
res = (res & 0x0F0F0F0F) + ((res >> 4) & 0x0F0F0F0F);
res = (res & 0x00FF00FF) + ((res >> 8) & 0x00FF00FF);
return (res & 0x0000FFFF) + ((res >> 16) & 0x0000FFFF);
}

/* --------------------------------------------------------------------- */

/*
Expand Down

0 comments on commit 693276e

Please sign in to comment.