Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967357AbdLSNZp (ORCPT ); Tue, 19 Dec 2017 08:25:45 -0500 Received: from merlin.infradead.org ([205.233.59.134]:52608 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762980AbdLSNZl (ORCPT ); Tue, 19 Dec 2017 08:25:41 -0500 Date: Tue, 19 Dec 2017 14:25:22 +0100 From: Peter Zijlstra To: Crt Mori Cc: Jonathan Cameron , Ingo Molnar , Andrew Morton , Kees Cook , Rusty Russell , Ian Abbott , Larry Finger , Niklas Soderlund , Thomas Gleixner , Krzysztof Kozlowski , Masahiro Yamada , linux-kernel@vger.kernel.org, Linux Iio Subject: Re: [PATCH v6 1/3] lib: Add strongly typed 64bit int_sqrt Message-ID: <20171219132522.etacjnltyrc3xjks@hirez.programming.kicks-ass.net> References: <20171218150544.8000-1-cmo@melexis.com> <20171218164449.dtdgk2bvnl4nbjcm@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 261 Lines: 12 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? > up. It does not change much for my function. The comment says: * Computes: floor(sqrt(x)) floor(sqrt(2^64-1)) == 2^32-1