On Fri, 14 Mar 2008 22:42:05 +0100, "Andi Kleen" <andi@firstfloor.org> said:I agree that it should end up using bsr. It would look like this in the end, I guess. Might be familiar. #if BITS_PER_LONG == 32 static inline int fls64(__u64 x) { __u32 h = x >> 32; if (h) return __fls(h) + 33; return fls(x); } #else static inline int fls64(__u64 x) { if (x == 0) return 0; return __fls(x) + 1; } #endif This is the only reason that this define exists. With another name it would be fine. HWEIGHT_USE_MULTIPLIER? And my feeling is that this is exactly the reason why this is not a good version for a generic implementation in bitops.h. But I don't care much. Greetings, Alexander -- Alexander van Heukelum heukelum@fastmail.fm -- http://www.fastmail.fm - Accessible with your email software or over the web --
| Adrian Bunk | If you want me to quit I will quit |
| Andi Kleen | [PATCH x86] [6/16] Add a new arch_early_alloc() interface for x86-64 |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Linus Torvalds | Linux 2.6.27-rc8 |
git: | |
| Sean Brown | git repository size vs. subversion repository size |
| Linus Torvalds | Re: git versus CVS (versus bk) |
| drafnel | [PATCH 2/5] Make mktag a builtin. |
| Andrew Morton | Untracked working tree files |
| Richard Stallman | Real men don't attack straw men |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Parvinder Bhasin | Disabling IPv6 ? |
| Mark Seger | occasionally corrupted network stats in /proc/net/dev |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Hannes Eder | [PATCH 00/27] drivers/net: fix sparse warnings |
| Gerrit Renker | [PATCH 36/37] dccp: Initialisation and type-checking of feature sysctls |
