On 2019/6/5 1:43 下午, Christoph Hellwig wrote:
>> -                    n = j * 2 + (((unsigned int)
>> -                                  (f->mantissa -
>> -                                   bfloat_mantissa(search, f))) >> 31);
>> +                    n = (f->mantissa >= bfloat_mantissa(search, f))
>> +                            ? j * 2
>> +                            : j * 2 + 1;
> 
> If you really want to make it more readable a good old if else would
> help a lot.
> 
>>              else
>>                      n = (bkey_cmp(tree_to_bkey(t, j), search) > 0)
>>                              ? j * 2
> 
> Same here.
> 

Hi Christoph,

Thanks for the hint, will handle it soon.

-- 

Coly Li

Reply via email to