[lkml]   [2009]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Introduce a boolean "single_bit_set" function.
Petr Tesarik wrote:
> Ok, then my only concern is that the hweight* functions return the exact
> weight, which might be much less efficient if all we need is to know
> whether it's 1.
> Theoretically, gcc should be able to optimize things out, but I'm not
> all that optimistic about how well it does it.

I can almost guarantee it won't in this case.


 \ /
  Last update: 2009-06-29 20:53    [W:0.036 / U:7.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site