Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1011515rdf; Wed, 22 Nov 2023 03:19:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkRvclJiN3M4S1KD1yIOQTROyi7Tq+0rTJLVH/Lz3mYZYJj3luesKEfqQ8s8lzQgPFnxEa X-Received: by 2002:a05:6830:1684:b0:6bd:b5f7:187a with SMTP id k4-20020a056830168400b006bdb5f7187amr2404402otr.20.1700651967295; Wed, 22 Nov 2023 03:19:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700651967; cv=none; d=google.com; s=arc-20160816; b=g9/0h3a7Oc946eAxFbyVSHFWzTLP7OO5erFPZERROqd1bMb+hLv8XOMWOOWvWSWhuY HUa3gFwK7j7pI/WZQ6BVPW0xmt5nPxKEj+RUlKCt0fCwCBZQY4UX5ZAy8TIsUwk6KwQ5 OarCL93JHXNYwRm+AfN7c8j5gR5hp/EzLi6ZIUd6xQ0new93jxkAtDS3oD1CUkJDrgr+ DhT3jRYlrt9P/s3tSC7vkruqfw/e0D8KbhXwQzXy0xsVFUKNbqmqFjU4kpB21q/MyI8o jHQZuS55UnXS0/k2/+Q94+i0vpFeVWEEtTcV3k6M8icf3iEVdbUBkps5kE2gx9RL1Hma 344w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=TLj2vSeZg+d0j1oJsc7ImvtbKpFd4qPQRoTLHJfqwR0=; fh=KCQjBJgaF5qcFZdtaDreDNtUQVpBcw+d88NrpfVrF08=; b=oU0xge7t9BTEL+2H80tywZ9XvXfJjoOiO3MIkxEPCXuhRTSLqcP/mc/B3i2fQUMyW3 eFo5T0pUkCpAqg4C5ATNQZz7fLZWNCz1xvqMG7Zst+dmEsI64OXomk75H9j6mJnipQ1p 1OfBaZ0iFLHt7+tV8zC+UhES2fxMQB5jyZUbDDuuAfyUo2W9GhB6vo8KbCjQPb8frp5U ATvcHVIhGn5XzPAxz+uXRne7OTeGiMBNO8Y2h75bJjwIUO2q+6OPkgQgTIAOB+3zh1fr dNNToyuRd0hNlcDejj9QThJMJ3BTbOOQgwS/d96Z7GxTxORc+sBJrCVKz5OCuWBMz54f V7PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id q24-20020a63e958000000b005898699b2afsi12774957pgj.176.2023.11.22.03.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 03:19:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4BB4A80C928C; Wed, 22 Nov 2023 03:16:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343577AbjKVLQE convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Nov 2023 06:16:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233910AbjKVLQC (ORCPT ); Wed, 22 Nov 2023 06:16:02 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0357B9 for ; Wed, 22 Nov 2023 03:15:58 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-72-nmAAUN1cNVK2s83WvssOog-1; Wed, 22 Nov 2023 11:15:53 +0000 X-MC-Unique: nmAAUN1cNVK2s83WvssOog-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 22 Nov 2023 11:16:23 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Wed, 22 Nov 2023 11:16:23 +0000 From: David Laight To: 'Jisheng Zhang' , Paul Walmsley , Palmer Dabbelt , Albert Ou CC: "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] riscv: select ARCH_HAS_FAST_MULTIPLIER Thread-Topic: [PATCH] riscv: select ARCH_HAS_FAST_MULTIPLIER Thread-Index: AQHaHIr3F/LmUcOCEUqs//JJARgdtrCGLu+Q Date: Wed, 22 Nov 2023 11:16:23 +0000 Message-ID: <47995b4daafb43348fc839ffb486f56b@AcuMS.aculab.com> References: <20231121144340.3492-1-jszhang@kernel.org> In-Reply-To: <20231121144340.3492-1-jszhang@kernel.org> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 03:16:43 -0800 (PST) ... > However, the > situation exists on x86 too, for example, P4 doesn't have fast > integer multiplies ... P4 doesn't have fast anything :-) More interestingly does anything modern not have fast multiplies? (that you'd consider running Linux on). The silicon required isn't that big. IIRC an 'n' bit multiplier requires n^2 full adders and has the latency of 2n adders. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)