12 May
2014
12 May
'14
6:53 a.m.
On 5/12/2014 15:40, Piotr Caban wrote:
On 05/12/14 13:22, Nikolay Sivov wrote:
+ state_id = IDS_STATE_MIN; + while(dwStateBit) { + state_id++; + dwStateBit /= 2; + }
It looks like ffs() could be used to do that. fss() returns least significant bit. Yes, why is this a problem? Input state is supposed to have only one bit set (or none).