Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6268865rwi; Sun, 23 Oct 2022 21:51:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4GzVDGAPfVOvqROkRxtzdEu0AWAtB8LurQN1rtdMTp5cjLZhcTI38ytEmHKQfvM5xIZa7d X-Received: by 2002:a17:90b:4ac8:b0:20d:56c4:a892 with SMTP id mh8-20020a17090b4ac800b0020d56c4a892mr69975695pjb.19.1666587102884; Sun, 23 Oct 2022 21:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666587102; cv=none; d=google.com; s=arc-20160816; b=yCdRoPmI1O+DZuV5aMM0frsmb4hTBB/45/f6K0NB3hOM2KYeSXs3m+9f/pOIyMB6Bj yy8BEyyGsVy36d1JtRgjXuHNgyXCsF62XB/bsMrmk4agX8shAYFQDnxm1FyVKRSAhjzQ EJFn8gy+ZIzgGS84E/3HBR7/Hd9Qsm9sdTzJQk60Pp8PBKT80RKrJTeV4OOKuvdXRh78 0scx832GtG4mBrpoYIT5TMjSRqWrWHTj0xmQ43xxJLirdOI0tiXCs4UYyKSt9SwnI1Is lWX/KaeTWUTz2hXGQhuY9QzPOgrtyaeDxyEf1rOmXA5Kr5kj+ySK7mHn1nosflgqmqoz U/Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:feedback-id:dkim-signature:dkim-signature; bh=GPE7rK5ZoLarbQEJTIQYWsXD2B4K3gZrdcp5Xh8TWXw=; b=ygemSQRG+sb9gL+xyLJqxBqvUxKOu+YEfLYZxtU6B/ZjgwqV+CZR8neL83Taz/60Oz y/RpJ0GfM+173xmKXXrXXMSbvSZzzWPNzSWvhHHsKRQLTUKjArrikSqAszpHFsF7Kmkj FrFBpgIwuP4WudJV799mN11ttT9z4zslKqdiInFNAuqXoUKxtx3zCHGRVv1L6OiafwFV U5n393BIE3l+kwR6+/SK3boly/j76ybk1fIVSXGzEAdgzkGCZ3ZwkxBPJ8K2AVpkRVPC XxhiyACZN6RgNbrbtbEik2SRSj6945FLD5jNKu6pRePjD9wRinKYtmv0oKiPYW7qK1hm tB7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@russell.cc header.s=fm1 header.b=PpJQRu9b; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="QSRUH/h8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a056a000ac200b0053ef8a89c71si35434011pfl.194.2022.10.23.21.51.27; Sun, 23 Oct 2022 21:51:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@russell.cc header.s=fm1 header.b=PpJQRu9b; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="QSRUH/h8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbiJXEdj (ORCPT + 99 others); Mon, 24 Oct 2022 00:33:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbiJXEde (ORCPT ); Mon, 24 Oct 2022 00:33:34 -0400 Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D94BE75CFB for ; Sun, 23 Oct 2022 21:33:33 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 4FA9E5800DE; Mon, 24 Oct 2022 00:33:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 24 Oct 2022 00:33:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=russell.cc; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1666586011; x= 1666593211; bh=GPE7rK5ZoLarbQEJTIQYWsXD2B4K3gZrdcp5Xh8TWXw=; b=P pJQRu9bBLsvUGFpFVIcsTaHHs09Cj5XnFjmS9UqgTvQb0unSN+HLTzaSTGS7r6QI Jc6lWP7jsSAmBjLhZ4xVF7aYP3XowmoBg3FFRvj5vIxX1ABv62JBlGoSkblf+AvC vEwhH9OcCujmxV7puvBOmxorkMH0k/Mo1xcEy1FkYqRFLteI6ibqDKLizSOHWfP9 5qBaiYMJIWvPQXWlRAGix4isqFaSVvWm8zuV8Qlz8V7EU3F0/ZOOaaZZWpBF4OUa GIN/gcjQmVCBjvraxdkMm10OT2nkIN73rmInoyFUmeqzHLe4qgf/rU5CdTknA0E5 eSXWXyoFmaPXbipvHtOQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1666586011; x= 1666593211; bh=GPE7rK5ZoLarbQEJTIQYWsXD2B4K3gZrdcp5Xh8TWXw=; b=Q SRUH/h8soDTSSDcMEXMiYmiZ2BhRxlHv4wW1C4mq2LGPPxZuPV2v+dDHSjSKjedI SUqlqRHb66aOdCc6hKA2OusDl+m+MTUfkA6o40GqXfTE5A/TKI+8flzoIGVv6dNG IfY9O+n43KW1gHXCt+HwYRubm6S9X7ibXYk8C9Bn7zeR2F3tL6RuseViWtMY7KcM Gogl5385WgBpSPM3jH1YqizxDq0XLlGLUju865L9O/pEFmTmhNBm19wvmKbnaBCa 1X6GvxuIjbGowNZpYT8GkbSg/zAYPk30eZjdPNvmd+cFXSAenrySjUzOXEIyZ+Uf 69WPPkFAaeFSvXqcWA3lw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtfedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdluddtmdenucfjughrpefkuffhvfevffgjfhgtgfgfggesthgsredt tderjeenucfhrhhomheptfhushhsvghllhcuvehurhhrvgihuceorhhushgtuhhrsehruh hsshgvlhhlrdgttgeqnecuggftrfgrthhtvghrnhepffeihfduhefgteevvddvhfekfeeg hefhleduffejtdevjeelhfeileethedvgfegnecuffhomhgrihhnpehgihhthhhusgdrtg homhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehr uhhstghurhesrhhushhsvghllhdrtggt X-ME-Proxy: Feedback-ID: i4421424f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Oct 2022 00:33:17 -0400 (EDT) Message-ID: <6426e8cf8d3bb2fff1403038ef627548f07cef32.camel@russell.cc> Subject: Re: [PATCH] powerpc: replace ternary operator with min() From: Russell Currey To: KaiLong Wang , mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, farosas@linux.ibm.com, mirq-linux@rere.qmqm.pl, dmitry.osipenko@collabora.com, kda@linux-powerpc.org, naveen.n.rao@linux.vnet.ibm.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Mon, 24 Oct 2022 15:33:15 +1100 In-Reply-To: <4ebda26c.346.18404df6852.Coremail.wangkailong@jari.cn> References: <4ebda26c.346.18404df6852.Coremail.wangkailong@jari.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU3VuLCAyMDIyLTEwLTIzIGF0IDIwOjQ0ICswODAwLCBLYWlMb25nIFdhbmcgd3JvdGU6Cj4g Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgo+IAo+IGFyY2gvcG93ZXJwYy94 bW9uL3htb24uYzoyOTg3OiBXQVJOSU5HIG9wcG9ydHVuaXR5IGZvciBtaW4oKQo+IGFyY2gvcG93 ZXJwYy94bW9uL3htb24uYzoyNTgzOiBXQVJOSU5HIG9wcG9ydHVuaXR5IGZvciBtaW4oKQo+IAo+ IFNpZ25lZC1vZmYtYnk6IEthaUxvbmcgV2FuZyA8d2FuZ2thaWxvbmdAamFyaS5jbj4KCkhlbGxv LAoKVGhpcyBmYWlscyB0byBjb21waWxlIG9uIHNvbWUgcGxhdGZvcm1zL2NvbXBpbGVycyBzaW5j ZSBuIGlzIGEgbG9uZyBhbmQKMTYgaXMgYW4gaW50LCBleHBhbmRpbmcgdG86CgpyID0gX19idWls dGluX2Nob29zZV9leHByKAoJKCghIShzaXplb2YoKHR5cGVvZihuKSAqKTEgPT0gKHR5cGVvZigx NikgKikxKSkpICYmCgkgKChzaXplb2YoaW50KSA9PQoJICAgc2l6ZW9mKC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