Re: [PATCH v6 1/3] lib: Add strongly typed 64bit int_sqrt

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

 



On 19 December 2017 at 14:25, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> On Tue, Dec 19, 2017 at 10:31:18AM +0100, Crt Mori wrote:
>> IIO kernel does not have the recent version in, so thanks for heads
>
> IIO?
>

Industrial Input / Output Subsytem tree

>> up. It does not change much for my function.
>
> The comment says:
>
>  * Computes: floor(sqrt(x))
>
> floor(sqrt(2^64-1)) == 2^32-1
>

OK, so return value should be u32.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux