Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1162649ybl; Fri, 30 Aug 2019 12:52:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTwyBOf/qQLOhKoG/6VvljHktU6puh4fBOr/fA5aP97oFKRzvc/7frDvyd1jD5/SGPekyd X-Received: by 2002:aa7:8498:: with SMTP id u24mr20413513pfn.61.1567194765765; Fri, 30 Aug 2019 12:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567194765; cv=none; d=google.com; s=arc-20160816; b=u1hJUKLL5KnfF/eFAb5r9EeKZBkR7whuqNEQjvulHeHCnMtRuVw+1uNy65dAbZIGcF 8Di7t9/KEizcPBlHKRGjhWVrItj51X61QvRmEFw07csIg7RN93y5BhBvy/h5hB7OG/nQ 87LT3iK/ylU6jTBugzyxnbFbDJS3bWo+EwiiM66ETBp2I/rg5udpiAmoLxv5ojdKokCP 7hArKk40+lt5hATnXEl5hQC7Kv9DHQheAx+kiWnuJNXCFp41B9bWZvYckUGNzK8qwSQn JRyFX3Ikor7A4wX/8oeR7lclSDsf/sbyS5B+uj0E2dPWjwp8FnS4E/4EBmZjruHmJ96K 5Znw== 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; bh=YcTquQFFNGFyj6h+17eIWTlSkXkkEaK67MosbLaZNLM=; b=n9P1Y6QnbyH2TlIkjN1MqQiPa0cbcqo1a7BNjXu8+2TKup08M97gkBvLuLzm/d1iZS 4AdxgyAGalNoBfYYkrm+ZBbAGrgHgU+ePnvtDed81nqGGltqjjCBFefDEZGmZtFNASN7 3MYt60MinPXql4PcusSjnizbNLl3WSEm+IuLqp9kMRu2AB4lTKHr2PPOFcCnj6YnPK0+ uuQFLV/EfimVG545ehH6dP8WvYLk/+pq+WpeYcVJucZYDzPKnLvD4uw0oSt2QAl1lOfV DgcJHvU8CryLz9GNl/ibf9FM68RvGVH8iBLCvoBySAY5gIcggivrH/dkZ/1dupbYsPMA ZCJA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si5489162plr.227.2019.08.30.12.52.30; Fri, 30 Aug 2019 12:52:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728166AbfH3TuX (ORCPT + 99 others); Fri, 30 Aug 2019 15:50:23 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:43945 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728072AbfH3TuX (ORCPT ); Fri, 30 Aug 2019 15:50:23 -0400 Received: by mail-qk1-f195.google.com with SMTP id m2so7182296qkd.10 for ; Fri, 30 Aug 2019 12:50:22 -0700 (PDT) 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=YcTquQFFNGFyj6h+17eIWTlSkXkkEaK67MosbLaZNLM=; b=g5cc3enn3T6IPfPfpKxInUaBRXrQrGEkZoKgW7s6dYRATFItDb65EbAvCm5vYxV6/B 39dbP5u+CsetXIsLu4gBepEyDF9ktTtQg7RLvkOhifx1nHCknY5WPz2+wTKItcWq3Zph V8woi/QGbq+R2MCxBwvRyP1CWFaL078wpsewIRCzXYGHlg/a6QFUSuVEOcdbAUkjJhpk m8/YhMugxfNSczFGPJZqQoFgsDqMDOWM+B286a11FYJ/3jnp533QFXGX3eHUlry8SRVa 7p7aIMHxZeyQZaxHW8spowPB30pLXReLqNLoBbVHZRxuMQPHYVnKgXjfr4OjXxBNzgC0 Ihiw== X-Gm-Message-State: APjAAAVxQzGMPBaR3H7ty4ymrsWTEzAU1ftQTVOPCQFSmN1pyHpiDPH1 /Wjd+YPah2GU54UDpiEOuziCICZgkr8kdCMOmvwMldtg X-Received: by 2002:a37:4fcf:: with SMTP id d198mr17083647qkb.394.1567194622102; Fri, 30 Aug 2019 12:50:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Fri, 30 Aug 2019 21:50:06 +0200 Message-ID: Subject: Re: [PATCH] __div64_const32(): improve the generic C version To: Nicolas Pitre Cc: Linux Kernel Mailing List 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, Aug 21, 2019 at 5:05 AM Nicolas Pitre wrote: > > Let's rework that code to avoid large immediate values and convert some > 64-bit variables to 32-bit ones when possible. This allows gcc to > produce smaller and better code. This even produces optimal code on > RISC-V. > > Signed-off-by: Nicolas Pitre > Applied, thanks! Arnd