tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ffs64 used with ilog2 for sizes <= 4 bytes?



On 03.05.2011 23:24, Christos Zoulas wrote:
> In article <74cb71889b610f96103c5458a2706ef7%helkyn.dyndns.org@localhost>,
> Jean-Yves Migeon  <jeanyves.migeon%free.fr@localhost> wrote:
>> Hi all,
>>
>> Is ilog2() supposed to use fls64(), even for 4 bytes long types?
>>
>> The test looks rather wrong to me, but before committing anything 
>> really stupid... 64 bits ops on 32 bits systems are a tad more 
>> heavyweight.
>
> By bad, fix it...

Okay, thanks. Will ask for a pull-up.

-- 
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost


Home | Main Index | Thread Index | Old Index