From 693276e4fc4869b8ad5b89d9e8ca7578b7e67fbb Mon Sep 17 00:00:00 2001 From: Richard Knutsson Date: Sun, 26 Mar 2006 01:39:00 -0800 Subject: [PATCH] --- yaml --- r: 24151 b: refs/heads/master c: 20548664aa2d98ba0ee3dde4482b0a96b9273b6f h: refs/heads/master i: 24149: 29d0e6c751a12334d584518528c5eef7d624cf15 24147: 63846bc7accff37ae3d19ddca1ae3069a11b7180 24143: aac466fe249b567e6034ddf6be3bdbac1cd680e5 v: v3 --- [refs] | 2 +- trunk/sound/oss/sonicvibes.c | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/[refs] b/[refs] index 4065053190d4..9aff5adf66b1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 93635133663ea3155e74a0e3645b64754a046007 +refs/heads/master: 20548664aa2d98ba0ee3dde4482b0a96b9273b6f diff --git a/trunk/sound/oss/sonicvibes.c b/trunk/sound/oss/sonicvibes.c index 69a4b8778b51..4471757b7985 100644 --- a/trunk/sound/oss/sonicvibes.c +++ b/trunk/sound/oss/sonicvibes.c @@ -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); -} - /* --------------------------------------------------------------------- */ /*