lkml.org 
[lkml]   [2017]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7 1/3] lib: Add strongly typed 64bit int_sqrt
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);
}

\
 
 \ /
  Last update: 2017-12-19 17:13    [W:0.044 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site