Peter Zijlstra 1527bc8b92 bitops: Optimize hweight() by making use of compile-time evaluation
Rename the extisting runtime hweight() implementations to
__arch_hweight(), rename the compile-time versions to __const_hweight()
and then have hweight() pick between them.

Suggested-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20100318111929.GB11152@aftab>
Acked-by: H. Peter Anvin <hpa@zytor.com>
LKML-Reference: <1265028224.24455.154.camel@laptop>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2010-04-06 15:52:11 -07:00
..
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:31 +02:00
2009-12-15 08:53:25 -08:00
2009-06-11 21:02:51 +02:00
2008-05-01 08:03:58 -07:00
2009-06-11 21:02:42 +02:00
2009-06-03 14:06:14 -04:00
2009-12-17 11:03:24 -05:00
2008-08-12 16:07:31 -07:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:16 +02:00
2009-09-10 10:46:47 +03:00
2009-09-23 07:39:30 -07:00
2010-01-05 15:34:49 +09:00
2009-06-11 21:02:15 +02:00
2009-09-09 13:29:18 -07:00
2007-05-11 08:29:34 -07:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-03-26 18:14:21 +01:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:42 +02:00