Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp510497imm; Wed, 13 Jun 2018 04:14:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIm5OMwmbWdYxrN6rVRtp6jvuMgN6Kt1lrX/jVWTzIYyeW6R7eVhq5rNR3H5MpFCxnr4gqU X-Received: by 2002:a62:b417:: with SMTP id h23-v6mr4469401pfn.121.1528888451756; Wed, 13 Jun 2018 04:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528888451; cv=none; d=google.com; s=arc-20160816; b=CY+OHGITBS6Korn50mM+BAGXxIOqGClT5bzh2PSIGZ1ZuX2Om862IUNhY6gRIMBC1Y zJjzOk5h/24lsQs0ZuosXJdEnHZ9xAuIwJkb/yu97+FYQQxrMaNqbv/Wcmd2raxaZN1a VMMr6CQ1nk82YcUf5apLW0zFCdqrb3lihKbN5N9dLWn6a7oW6LFQ9lqCuam38Szk2i0k Gsk+ZUadQIQVK1wSEtauthwcMxy2vEQbm1f23OsBufNmkED1Pf4pB1sKnS0JSEJHFjQw BGOHegZCVagTFRig3tDmWsLLyvwdJ0fT0pzn4irfIcWJsNA1DRL3s1/YLs7YyR/jZnyk OwRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=mgeI4a8+2rRfM580R67qEpicU3fZbbj/kzMeULj27NA=; b=Scwusgd7wO4FwfhbtO1JIaTzMhJSyCTo+orhOPj+aPvwTEdTPQhFmEGV7UB4P8lZV3 qC4iMC96h4bdozMkhSWOEfv/0TV2NMhLxS3xOydELRv4xHfci09JJOuLZ5z+h9+HGBXd On8fRoEafl6BTG00ia9tdP6+RXnDdpFTWUeXtwi7b73EwBW4mL2o0PpHpDWgyYvu2Y0a 16LiGon7WnMGIjLlfjzPQla1CTANAhffoURN6CBmuUZQYzRKj5agKs1zmXFGd1QdCXMN 8iR1ikjjwyhdermzFnY1pQbgejTK7hcWJQ15k2eXqAFtkn6MkkNMrSn3j1sNaJIlu1nX RO3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XIx4p1wS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2-v6si2011264pgc.438.2018.06.13.04.13.57; Wed, 13 Jun 2018 04:14:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XIx4p1wS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935346AbeFMLMu (ORCPT + 99 others); Wed, 13 Jun 2018 07:12:50 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:38037 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935328AbeFMLMr (ORCPT ); Wed, 13 Jun 2018 07:12:47 -0400 Received: by mail-it0-f68.google.com with SMTP id v83-v6so3284655itc.3 for ; Wed, 13 Jun 2018 04:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mgeI4a8+2rRfM580R67qEpicU3fZbbj/kzMeULj27NA=; b=XIx4p1wSA2AvIAjqVTYeG7+RxmCgwrFIpzZ25DegsYv8M9DMr2oOQnsy4L8gtO20zd owtplfbMykRpwds8S5dQQcJ5hpkOJwl+wp+xEovL7BxhR3ZgkzEMqg5jF5btdXXsbS2M MgjTQfVzpk8Z/bi2KGdmkHuJ57mwRVXDdIr84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mgeI4a8+2rRfM580R67qEpicU3fZbbj/kzMeULj27NA=; b=QFuSx9GLrXA2kTnNDQYcD2CikrXHcUGmeJ4Ka8TPqrf7Pr9ZlTl0bFt5QfhsaKyb8r iaFHjG0UH/nQ9WypEDJAV5oiR9vrOBY5YfsHz0ngcQ8WmHR8CLXf17mBnHpDXBmXO2Zp moTa/5EIGC3RuSZoaXRCIcpQxUEVtODmUOu8gVMHIArGUvZ1qTtH43o38LSJCWGZ/Wbk QatEzDF2SbA9G92GiyvCIbNpt2UPHXYBe1VW7SAnNiJSz8p9QQTXuXDak7dtjAQjvrAA VJAK7cqyR78ifDD1J/o8JZODZVysgh+dNfciBrjJ6aXHrQuVrIfAKZC+Cs8AvG/LHKhJ yEVg== X-Gm-Message-State: APt69E3GGifSIOz2XrnwSwF096zn6x9zYsX5ibWGzyzFPCNgE+bP+6aY tmXhedkK7pNQdZFXNRKXpWRH2RchX9ubJ11J3UePaQ== X-Received: by 2002:a24:690f:: with SMTP id e15-v6mr4150547itc.70.1528888367161; Wed, 13 Jun 2018 04:12:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:78c9:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 04:12:45 -0700 (PDT) In-Reply-To: References: <20180407135934.26122-1-ctatlor97@gmail.com> <20180607181306.9766-1-ctatlor97@gmail.com> From: Linus Walleij Date: Wed, 13 Jun 2018 13:12:45 +0200 Message-ID: Subject: Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function To: Craig Tatlor Cc: linux-arm-msm@vger.kernel.org, Sebastian Reichel , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Andrew Morton , Randy Dunlap , Linux PM list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 13, 2018 at 1:06 PM, Linus Walleij wrote: > On Thu, Jun 7, 2018 at 8:12 PM, Craig Tatlor wrote: > >> Adds a function to interpolate against two points, >> this is carried arount as a helper function by tons of drivers. >> >> Signed-off-by: Craig Tatlor > > The linear formula seems to fit the most natural form of linear > interpolation. > > I bet some John Carmack algorithm type people will soon > start to optimize this... :D For your entertainment here is some sunday reading: https://fgiesen.wordpress.com/2012/08/15/linear-interpolation-past-present-and-future/ Yours, Linus Walleij