From nobody Wed Aug 13 17:48:00 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c2G765jSGz64FyF for ; Wed, 13 Aug 2025 17:48:02 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c2G764vzhz40m1; Wed, 13 Aug 2025 17:48:02 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755107282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UtRDoaSqO16VVGf3I7UUkrcQstwniHC4vkwVPEpaCs4=; b=yTeTRqjk4TQEq83097l09NFKFirEykoj5vGD7o9NtivC41iBxbvcCAAONYH+WaxRBdiiEh nRe1Uo80A/DafTmWUyi9mGZsr6dP/8xkzxNzihrxRQBnS+h/JpVY8kRmZ1bLwe2nYWTrre RYaiTVHHqFYD/zEPDjSz3YqiAFDoXhXUinCHkvzEzwgW15xXYY8mgS9FEpIYNjDDBWwtxn sRUwcnOc/oNnvqsF0adUwgPx9SBBm7ErztJhw2yvvsPvzwKlnyQPKbU/USknT+4ewSH4ae WDwvIIN8FIm4UqSsNLPK065zM3H9qn2dnpuu2XLkmov262bR46+5qJqrNBBgEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755107282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UtRDoaSqO16VVGf3I7UUkrcQstwniHC4vkwVPEpaCs4=; b=FWbJNx9KBAYR77O1hyTHhWKZdqZjI6BKESnNRlozHGKYQT6IR+eEMuLNE4y1IqpjR+vZ7b cGeAvfqdanUJhomtf5Rdz/9bBnr9oLsjD0azPQSVoRESTdxoWR0h9D4y9Yy3rjmbmhN7h3 jmghfVHaKVc2efsLLP64+HGAKabsIXEkd/wjlxOwnDgYaMVXBs5GAUzoWTslp0ANQlWeon jeZ+pm+vArmVlDj0jdYA5DSP7R0B9XGYTfbo8bDly2sD4OjJ+cW+VXlAVgPI145FsQHsjv 15KZw54lttUwRMyvkpCugKu3ePKbfVwcRMAQ32maWdXoSWeT39KLrn8iUGTUww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755107282; a=rsa-sha256; cv=none; b=f+B8aun5ODPuuBgU+qrq0NlxbIubtyMnyJr2gSC8GTw5s8vJ9vaeXZoiPaG7FuViPAV8JB 6BtAGdt4SV3dtyz6hu4vH83G93/92KMmdqZbFIY0tpvPSt1itUdnwhDjAU8CzL6KSMg02W No9eJCMUuS67Q2lfIGvxqzwb103M/oNUIqjKWLMBS80iHwsgtyik6ZKxVq1XGBHUpGQ8rL i/wL74a+JG1bBp55WTuOmUr9m6vj69PrsWWP1UNOhB7q/w5XTTK1+rdx3wOpQMKsnQ/iyl AB/PCsk3yA7GsK4m750Ol5OtW09CrropisHbFCavo0l7UqyO5J1j9Ya7hVQbkw== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R11" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4c2G763dpsz1K6x; Wed, 13 Aug 2025 17:48:02 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (bladnoch.home.andric.com [192.168.0.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 136256C8D1; Wed, 13 Aug 2025 19:48:01 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: a question about style(9) and inline From: Dimitry Andric In-Reply-To: Date: Wed, 13 Aug 2025 19:48:00 +0200 Cc: freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: sgk@troutmask.apl.washington.edu X-Mailer: Apple Mail (2.3826.700.81) On 13 Aug 2025, at 19:31, Steve Kargl = wrote: >=20 > In looking at lib/msun/math_private, one finds >=20 > static __inline float complex > static __inline double complex > static __inline long double complex > static inline double > static inline float > static inline long double > static __inline int > static __inline int > static __inline int > static inline int32_t > static inline int32_t >=20 > style(9) seems to not contain any preference with respect > to __inline versus inline. As a matter of consistency, > I would like to use whatever is the preferred keyword. > So, which should be used? In , __inline is defined such that the keyword is removed if the compiler doesn't support it. I doubt it is possible to compile FreeBSD which such a compiler, so the whole __inline define now seems only necessary for backwards compatibility's sake. Since plain inline is already used in libm, it does not really make sense to use __inline anymore, in my opinion. -Dimitry