[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171219161245.cbjmod7ak5scio7d@hirez.programming.kicks-ass.net>
Date: Tue, 19 Dec 2017 17:12:45 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Joe Perches <joe@...ches.com>
Cc: Crt Mori <cmo@...exis.com>, Jonathan Cameron <jic23@...nel.org>,
Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Kees Cook <keescook@...omium.org>,
Rusty Russell <rusty@...tcorp.com.au>,
Ian Abbott <abbotti@....co.uk>,
Larry Finger <Larry.Finger@...inger.net>,
Niklas Soderlund <niklas.soderlund+renesas@...natech.se>,
Thomas Gleixner <tglx@...utronix.de>,
Krzysztof Kozlowski <krzk@...nel.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
linux-kernel@...r.kernel.org, linux-iio@...r.kernel.org
Subject: Re: [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);
}
Powered by blists - more mailing lists