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);
}
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);
}