From nobody Mon Nov 20 03:57:56 2023 X-Original-To: dev-commits-src-all@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 4SYYd04tZBz51qmv; Mon, 20 Nov 2023 03:57:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SYYd04RLYz4TW8; Mon, 20 Nov 2023 03:57:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700452676; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TjnxrX6hf1jce6YoQ+C9BFaXWvxngKxRkoRmZ0QhVZ4=; b=hGf/K+RNhWvq0Lk27KNMWAm5DnYQN6tfzvrl71ZYWruwrKfgL/il4tv36shwyAB59jq4kq zUjDAZVqgd9EJOdcNEOgTBRmzzFzAcCjW8XtepXKWcoPaSOrbJ8foVBs8Gtfvg5IvmIvnq 36q8Jm6TpnTd/GxdXNODIV4pBWdTjCuu87n4us8z7Sj8V0woSuj2GIFdZsrBiQecFUE0x4 CbSs/KsnPS4BkM69lZuDr/3SnSwOUgMMVSYPHJFht2Ri6Hif1HKdgV3/Bnr6rMRhbS0VMi 6tI11EjPLXbO+/BEeleIHeAzEWo2wipQP35dXsn2PqalCWuR6XdFszB9abT3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700452676; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TjnxrX6hf1jce6YoQ+C9BFaXWvxngKxRkoRmZ0QhVZ4=; b=ryCwld/yVHrcsUqReZVcJtEi/M1fcZHpvLocLSprfB1bP6k7pTvqSMBPKJyP0+ovI7HGfu y7ipOAVHY/zZUUcazM/zWBS5r1KdroCDZ7Ul4bjUWczIHJQk2hqYuZ9PEi3lVnCWlL5c+k pJEzXkj3Ak8+3zWVE78nJ7wLzTHe1cy/Kpgr9MJ7yv/LhwKI8CpfopPXtN9Id+uVp+lsXZ njei5lO/oVv8D9z2xDwapcJ4DUHrUPvNlvHvpPAN2L1N7oUG1X+18VHbeT3x0wK+X4E4mq pON+l/JbUAQ5gbNF8sMmm3tQse1UzIERcPzhygV7lWpW2mvXS2sjCwsfhxQwEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700452676; a=rsa-sha256; cv=none; b=RxGElqYEphjlY0qQpv6fjMbHHytFxwUJr9L/MYYRgDTUoGPk+pr3/gROEJCOhEfPkdXDER EUMVyHFwV27UnGWeCQdfu0ljG7ukWO3qX7d+EEp06LQ21fOdIZ4HTCvROYje7evoiXsDTP Nlpe1nifimeadriqwuLhzT2/kPYg/Aiq7IcSTPPpZ7boODxdGEjUO3uiyh9iaQlzEuscVe agACTCz4Bst0MQ1Yy18N/j6ObgUxSQswmsZVe+fwlZM/jmKXX6aBgzP6Cbipy4FNtHHDR9 79t/aWd3YW63xPeCEphGGOLKcb/07Efe5Fy1LoZ6/MEH3c8BCBIS/LsGTm9Fsg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SYYd03VctzcZp; Mon, 20 Nov 2023 03:57:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AK3vuSh071704; Mon, 20 Nov 2023 03:57:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AK3vujk071701; Mon, 20 Nov 2023 03:57:56 GMT (envelope-from git) Date: Mon, 20 Nov 2023 03:57:56 GMT Message-Id: <202311200357.3AK3vujk071701@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 1b681154f5e9 - main - math: Move to const instead of __const List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1b681154f5e9c212822d7bfa6e3c399bb36bed47 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1b681154f5e9c212822d7bfa6e3c399bb36bed47 commit 1b681154f5e9c212822d7bfa6e3c399bb36bed47 Author: Warner Losh AuthorDate: 2023-11-20 03:48:30 +0000 Commit: Warner Losh CommitDate: 2023-11-20 03:55:57 +0000 math: Move to const instead of __const There's no reason to use the __const construct here. This is a left-over from supporting K&R and ANSI compilers in the original Sun msun. All other K&R crutches have been removed. Remove these as well. There's no semantic difference. And there's already several others in math.h. Sponsored by: Netflix --- lib/msun/src/math.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 8e72beb757f8..f1acfda8d7e8 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -183,21 +183,21 @@ int __signbitf(float) __pure2; int __signbitl(long double) __pure2; static __inline int -__inline_isnan(__const double __x) +__inline_isnan(const double __x) { return (__x != __x); } static __inline int -__inline_isnanf(__const float __x) +__inline_isnanf(const float __x) { return (__x != __x); } static __inline int -__inline_isnanl(__const long double __x) +__inline_isnanl(const long double __x) { return (__x != __x);