From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807AbdLUN4n (ORCPT ); Thu, 21 Dec 2017 08:56:43 -0500 Received: from smtp-out4.electric.net ([192.162.216.194]:64984 "EHLO smtp-out4.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752543AbdLUN4j (ORCPT ); Thu, 21 Dec 2017 08:56:39 -0500 From: David Laight To: "'Crt Mori'" CC: Peter Zijlstra , 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@vger.kernel.org" , Joe Perches Subject: RE: [PATCH v10 1/3] lib: Add strongly typed 64bit int_sqrt Thread-Topic: [PATCH v10 1/3] lib: Add strongly typed 64bit int_sqrt Thread-Index: AQHTeZ24vj4uJGdJVEmg6EfyY0tMJ6NMSiFAgAAfCS+AAAbEMIAADUYAgAEwoOCAABsbgIAACUNg Date: Thu, 21 Dec 2017 13:56:55 +0000 Message-ID: References: <20171220142001.18161-1-cmo@melexis.com> <1c1d0ffa8ee140bf9adbc78f1559b1e8@AcuMS.aculab.com> <20171220160001.manjff26gfbjccsw@hirez.programming.kicks-ass.net> <95b9b2b52554410a85a9f10c7f5e8b13@AcuMS.aculab.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.33] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-Outbound-IP: 156.67.243.126 X-Env-From: David.Laight@ACULAB.COM X-Proto: esmtps X-Revdns: X-HELO: AcuMS.aculab.com X-TLS: TLSv1.2:ECDHE-RSA-AES256-SHA384:256 X-Authenticated_ID: X-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id vBLDulOe012223 From: Crt Mori > Sent: 21 December 2017 13:18 ... > > unsigned int i; > > i can be u8. And I will still use explicit typing. u8 will add extra code, unsigned int is good. 'x' needs to be u32, 'y' and 'b' could be larger. I was testing in userspace. ... > This part above looks like FLS It also does the rest of the required shifts. ... > This one indeed works. I did some more testing this morning and I am > fine with either. > > So question is: Do I make change as per David's suggestion with his > sign-off, or leave the version it was before the change? If you generate the actual patch I can add an appropriate sign-off (or whatever is needed). David