From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E00AFE9539A for ; Wed, 4 Feb 2026 13:07:19 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4f5gcQ3v54z2xm3; Thu, 05 Feb 2026 00:07:18 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2001:8b0:10b:1236::1" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770210438; cv=none; b=M7xyKz6NWBdXuF/yy5MjF1QwdHh5UjGtWcfhA3UlRTk7SFyxXrHyMcTh07+g5IQM0ccD4tHHpitKvVKabcWKm0vZzTyOkhorDvmigWwbyMx9aM/VdvhqTzUPSviFSv4Wqg/t1vBD4Pxiio3NhhEALAA7YuV6Ykh5rM38ASaqaQYP/YTfTSU12OCrM5cIHnk+RxsZdSbmwCnLkKRZy3JEb7RsnmoDUtm6RV1b76sX5o/E7VJUn7asFiTiqlBDfYtUw9qmHjsZfaCf6G389l4yAFH50ZOpBofqXhJLVLVPm/gStzAAPaEfsI2AlqUnB9FDXOM45pRyuN71EH2HwjYAJw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770210438; c=relaxed/relaxed; bh=IG7z+rMybMa4HuzoAClaZJTClqKa1ijErCJG0QFQoWY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h4soLLASqROAzaSQLcU+xwaBHNh7HnZAaIYOjxOW3ij5VwCrdGslXxNe8J5T0yliKFC9YdHD3lPNyjreYrjr9YytS7WbyOo2Ip7RFdk2RXiBNwhasEK7IMAfE6gupB8i+opedvIuQExyP0G/UX3rQz0g6DnPY+0SGAxw7NBlVeZrMLCSGPC7aNXn0nlycPWjLGoglKUJqOw3kFveekwUrTmqwwelHmqGNycpyDcjaJSukPBfLBW8+lA3lHCLOvmyClu53K/2X4eHlA6fwbzX2IDTTzs4RvVpnKuz12H0XsVrfKxMBrZ4SlKS4vyn/eabZ9h8g4taM0n1PQp7D68qXA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=infradead.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=JnNmj20m; dkim-atps=neutral; spf=none (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=peterz@infradead.org; receiver=lists.ozlabs.org) smtp.mailfrom=infradead.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=JnNmj20m; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=peterz@infradead.org; receiver=lists.ozlabs.org) Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4f5gcH0PDhz2xJ5 for ; Thu, 05 Feb 2026 00:07:09 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=IG7z+rMybMa4HuzoAClaZJTClqKa1ijErCJG0QFQoWY=; b=JnNmj20mm0cT/SAQkT0IEJ72Jn yFL0UFRybqecdOVM/1xS8zNEz1CsA2VmJqWKJL3pxSz/3Eb2QQee1rOZVnsoWdN+d67Q12Xe7aLog Ed3/oC2V3ikJ7KOnUEvk3UE2dvpREAv4XJym9QeEGR+lPtkcpb8Z8Mp0nqyqJ4++32t1lIVBU/dIZ QP4uqO2SDYDTum3xaUZR9zNluxP4M84YOZdgXelOkAE0NgSQ/beE75OCCIB2t8Efrte/uLOGy8Nb0 CasrpB2NDBcpW0kyHSlgGeA0BtuQlhgFzv6a/uvF22OLPZsgx09OPvQ496GWarL+3HLP2b/orH+kv ylDfNAGA==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vncas-000000026VB-09Dm; Wed, 04 Feb 2026 13:06:54 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 7D24B302F8E; Wed, 04 Feb 2026 14:06:53 +0100 (CET) Date: Wed, 4 Feb 2026 14:06:53 +0100 From: Peter Zijlstra To: Alice Ryhl Cc: Gary Guo , Link Mauve , rust-for-linux@vger.kernel.org, Miguel Ojeda , Boqun Feng , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Josh Poimboeuf , Jason Baron , Steven Rostedt , Ard Biesheuvel , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, llvm@lists.linux.dev, officialTechflashYT@gmail.com, Ash Logan , Roberto Van Eeden , Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Subject: Re: [PATCH] rust: Add PowerPC support Message-ID: <20260204130653.GH2995752@noisy.programming.kicks-ass.net> References: <20260204030507.8203-1-linkmauve@linkmauve.fr> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Feb 04, 2026 at 12:55:17PM +0000, Alice Ryhl wrote: > Is there any reason to not make it Rust-only but for all Rust code? > Making the / operator work seems like it would be a good idea. Why would it be a good idea to have it work on non-native types in Rust? The reason we don't have them in C is because non-native divisions are expensive and doing them should be a conscious choice. The very same argument should be true for Rust code too.