Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 70C4DC001E0 for ; Mon, 31 Jul 2023 21:36:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AADFC868DF; Mon, 31 Jul 2023 23:36:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="cm25pQTJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7F0B6868F1; Mon, 31 Jul 2023 23:36:46 +0200 (CEST) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4392C868CE for ; Mon, 31 Jul 2023 23:36:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-585fd99ed8bso32240957b3.1 for ; Mon, 31 Jul 2023 14:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1690839403; x=1691444203; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=My7+qmFuQWo0slMIpO0j3Dswm4/iDTGdCeeWcvzUN+8=; b=cm25pQTJoCGlQ5wiBc3cDhLQ5CcbIHWo5q85q1koeMuQ2AK9hWbqZZkF7r5vQTEuRW kkHAHn/GtkRTPpS2aR4ryiJ5DbimKugV1ZRo+Naq3SEqGJj6ZMPwfyO3mHcNX7qS9E6+ etaWU7seHzsgkieUoakmyZUk3W+LGq4p7dqeI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690839403; x=1691444203; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=My7+qmFuQWo0slMIpO0j3Dswm4/iDTGdCeeWcvzUN+8=; b=OYK8gcv5E0Psj2CkZwXZ6joXixbTKOAnRPxTFCLZMv4iFRj3cAASinEIfLGffzQy0V YSVNf8Xw00buzDxN0d033tnowLNZlwovUlu7lmBuZXH/zc8RS3/SPOqZvzaHSqPkzL5k 2gPCBbHqkN5VGh5aN1fPrzfJy8ZHh3zjRmsG4NZVHRvXBbiKbQeOXdWB/SWOFz3AmAb3 CLC4Umw/1ZN3u9PUM+uEPaD0ZfzczJgIaW+RqtwLYWC64p9rETTf4qcEIOYSy5W5VCvd zLvEFUDSpx+b7gbSgNU3wXTQr6RkP5BT3DmTW1YoWBwv7LwYDMPHz2iXh3f5mCP5i4d3 1RhQ== X-Gm-Message-State: ABy/qLb/+ZD2Ls6/wN4p4d9Eez4RvgvJRFarqSUV0ZiirL3YTyhDQmaC uyEGdw0JTRjPRetwUM+BiPIKYw== X-Google-Smtp-Source: APBJJlEeIjn9G6pZAPT/HnwFJPzWfAzs/8yR0SlF66BBn5aU8niFpWksWB6wdIzk2ZKTsoDTxMWDag== X-Received: by 2002:a81:a04a:0:b0:576:92ef:1575 with SMTP id x71-20020a81a04a000000b0057692ef1575mr12497259ywg.7.1690839402872; Mon, 31 Jul 2023 14:36:42 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-7e50-54e3-e9cb-536d.res6.spectrum.com. [2603:6081:7b00:6400:7e50:54e3:e9cb:536d]) by smtp.gmail.com with ESMTPSA id c68-20020a0dc147000000b00577269ba9e9sm3309296ywd.86.2023.07.31.14.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 14:36:42 -0700 (PDT) Date: Mon, 31 Jul 2023 17:36:40 -0400 From: Tom Rini To: Sean Anderson Cc: u-boot@lists.denx.de, Matthias Brugger , Peter Robinson , Eugen Hristev Subject: Re: [PATCH] arm: Use builtins for ffs/fls Message-ID: <20230731213640.GJ3630934@bill-the-cat> References: <20230731212734.7256-1-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="13IqD8KXiXjAPtqS" Content-Disposition: inline In-Reply-To: <20230731212734.7256-1-sean.anderson@seco.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --13IqD8KXiXjAPtqS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 31, 2023 at 05:27:33PM -0400, Sean Anderson wrote: > Since ARMv5, the clz instruction allows for efficient implementation of > ffs/fls with builtins. Until ARMv7 (with Thumb-2), this instruction is > only available in ARM mode. LTO makes it difficult to force specific > functions to be in ARM mode, as it is effectively a form of very > aggressive inlining. To work around this, fls/ffs are implemented in > assembly for ARMv5 and ARMv6 when compiling U-Boot in Thumb mode. > Overall, this saves around 75 bytes per call. >=20 > Signed-off-by: Sean Anderson This looks like it's synced from the kernel, what tag? --=20 Tom --13IqD8KXiXjAPtqS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTIKWUACgkQFHw5/5Y0 tyxx3gwAiwnClEUplZvwwyFXF5n575X9rJ8LVWoswwAX559FV84Jsv6V5RTa9OGv zoElM2HPbeIug/HMvXD5GNMyruq4OL6BI71c+wwIz5RD+FQjruwBFxiwZh3yByCr KhZahoFmgkm/oQupPFPXfjkqZbiBa5jgFZoAvdNydVMHK2DCMYOA9sAAHiWzPwNp ev2RrADlJxrJmvfyNygMclwJ4OXuAYaSA2MnMR74nqt2tmMLgSVzxn4nURUrVs2y AWNw5cCYBuhnZyA9wrWSXc5Qb5OpKxvkqcbF+c/KmgKjJhva8vDXfwX1cGb/ELKe 69ccoB4HImlmNO1oRm+FkkuZoRxlbtYMwFiMxOFsGh7i7wDHX2aqgr2Ks8NWlKqm Wuor5E8j4/V+4U6B3J3bFMH6fneE6AVOggGp5LaV7r5gGvEc6gePcEo2paSZeuft e2CtLr8UiBwJTuxo9EDFEAuMq68+WvXOepP8LzHHQhbMQQoH7Zd3OlQ56teAyAY9 HXnkqINL =tHHc -----END PGP SIGNATURE----- --13IqD8KXiXjAPtqS--