Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5211196ybe; Mon, 9 Sep 2019 23:38:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcFY60XnO0eFvr2yWDjnQJ9OKNiyh+VFqwTTsbTd7BRl5hjvhrg7ejzw5RKsmAH7vLnmKg X-Received: by 2002:aa7:d488:: with SMTP id b8mr23353496edr.90.1568097480355; Mon, 09 Sep 2019 23:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568097480; cv=none; d=google.com; s=arc-20160816; b=Ybh7mGkt297JB+DC6qV8M2xU15yMve2+FjhciFn4w/+ANznAxP8vXZ7NGrpcXhewIU ur3hQozQi40ugdId+8k2QfuvHBbvxEeWbn5GDk1Z302oY1CWFyq/G9hX5nbp9/BrBRdQ PmDGfBziw0Kgd/yAxsfjpQoz7354QOx0gF1ZwxTN7ReiXLSPD36o2QqyjKIxndjlCKtw wIRnLteoPTvSsihjJeB2I0Ydd6QtJvQle/GL70pBDQO35P1QLwDswiXCmW7bEP+5T9Oe 8APp7/l5GNzJJVwtpsYocPWQldMOeCNrP5i5VWD0v/rNDkCNzGAC8O8CTRp+KgZsn/Gz cgKA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=RTNpYr6ymqFhD4zr98gAWKjHikkNTFmbfj5AV7oH6d0=; b=EwTJVyQS1nNShXRhInOmatEwp1st5r2uiKx9t4qAu5wOdYtDe/KYFNO7tdgrrPUVaB SHqyLmyu/YWZHIl1AwJXpDgvutrneC7lKshfWib7TprJfyeaS/E8y5jgFmO09FUFF7Pp 7aVrRJZDJgOscVCguMdVIK/eWLKe9Ml+5Cu5vNbCePWQVd3QN6qMGvMqpbB/QqtWbR3D oWcdRnuzyJRcM1LS0YPxm1AzOXTPUPXCHaDbOzozKzioKyYqn9p4H+ZN1TRyXapGmeeN OGpQnDUH6aiIobYLH3Mfzshy1B6uPCYTHIYEAwyiM0JpRQcoJbyAmFKDF7/FqnCeXfJR cdDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s76FTppZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si10952004edm.313.2019.09.09.23.37.36; Mon, 09 Sep 2019 23:38:00 -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=@gmail.com header.s=20161025 header.b=s76FTppZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731038AbfIILuk (ORCPT + 99 others); Mon, 9 Sep 2019 07:50:40 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:34300 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbfIILuj (ORCPT ); Mon, 9 Sep 2019 07:50:39 -0400 Received: by mail-io1-f66.google.com with SMTP id k13so12639503ioj.1; Mon, 09 Sep 2019 04:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RTNpYr6ymqFhD4zr98gAWKjHikkNTFmbfj5AV7oH6d0=; b=s76FTppZdt8nReg8wyiDx7MuWv8oCZXYc7JcTwibRAbrhgT10Uap3DTpqSl9tvl06y OONKyIvHZijjWZG6cfhMI8J8uMUNkP4q8+r1Y9Y5QTTR7W4QNEdihWrSHSciTbiugqVg 8a1CwrAmhEigD4EKMHi861IAGHdeYYIIO1D6GoSt6YCa+E13oICbtyzcIZQdF9bfzAZj dx9wlrEVpw0GCirCXCu7VuTXsyeMTwj76EqAmbBHzeXsW+c539elfqOAn3IlDoi1rf5C m4YuO0Yp1QiL7d/5zJNdX0qfU209o7rwcdqKYjTuIr37Ppo78/0vBqFmHlqT6DZVfqJa r58Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RTNpYr6ymqFhD4zr98gAWKjHikkNTFmbfj5AV7oH6d0=; b=rjz3uVN6r95cE/emlDB2lmYZ6pxD/WYyfrSheZGjsQ7vP4jWdiXOf4dA4uvpmXQMIu 9RoOVHmKFR8y5aMEBwuMEkl3jpWBWz2eoUVr0sU8pzra+8yp3GyyLSWNVpybT6dDoKHc g7pVUsyTLagBtQbhKtloYbue7QCQZp8EU24f9eD7nhEwCeCgOKwf+4Nfx1/Yl+l9O6b1 lvSqdoZySRPuqz/ypZOwc0DuunqMCVuubpdAAGQxAott1W7bhzg+0/k5/bUN8bdn5mWY TOeZC239tLE3Lw3FXZQSLe2egaQ8ScutzwekHyvYQVxQ1t6cgWSsE0TCs+KDnwAtQzhe ePag== X-Gm-Message-State: APjAAAVvBDUfOiQVVgbhB3IBoDswSnPWX/FpKtQYjUNZ004NrQGBauTV 314RgK4pH8AEHDcg89BDGpkMJ+oGg6k/BVAln90= X-Received: by 2002:a5d:9714:: with SMTP id h20mr20337445iol.294.1568029838120; Mon, 09 Sep 2019 04:50:38 -0700 (PDT) MIME-Version: 1.0 References: <20190909102340.8592-1-dima@arista.com> <20190909102340.8592-5-dima@arista.com> <20190909111812.GB1508@uranus> In-Reply-To: <20190909111812.GB1508@uranus> From: Dmitry Safonov <0x7f454c46@gmail.com> Date: Mon, 9 Sep 2019 12:50:27 +0100 Message-ID: Subject: Re: [PATCH 4/9] select: Micro-optimise __estimate_accuracy() To: Cyrill Gorcunov Cc: Dmitry Safonov , open list , Adrian Reber , Alexander Viro , Andrei Vagin , Andy Lutomirski , Ingo Molnar , Oleg Nesterov , Pavel Emelyanov , Thomas Gleixner , Linux Containers , linux-fsdevel@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 Hi Cyrill, On Mon, 9 Sep 2019 at 12:18, Cyrill Gorcunov wrote: > Compiler precompute constants so it doesn't do division here. > But I didn't read the series yet so I might be missing > something obvious. Heh, like a division is in ktime_divns()? Thanks, Dmitry