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

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

 



On Tue, Dec 19, 2017 at 08:09:53AM -0800, Joe Perches wrote:
> 
> I suspect you need to define this as:
> 
> #define int_sqrt64(x) ((u32)int_sqrt(x))

What's wrong with using C ?

static inline u32 int_sqrt64(u64 x)
{
	return int_sqrt(x);
}
--
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