From nobody Wed Aug 07 09:56:17 2024 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 4Wf5D173YTz5T3jy; Wed, 07 Aug 2024 09:56:17 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wf5D16Npdz4Q9G; Wed, 7 Aug 2024 09:56:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723024577; 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=XMtkufqljiyBqJPOWj8jnFp1IkRY2hGxhEvyFCB/d8w=; b=bNcnN1wkb0V33B+Vif84bJFOl4IyPLXAFw6x9KgNs11Zu7Eo0SfvRf6E0gs7fGHvrushFD LPUO9qBGzkUThsq5s/hJnFpYGO+7oIT01dGtEogpBhZ/t1EdQ2klAn2KnIBeQDGkB+ebUR XNKq6/ockvzVX96hdCpDn9GLva7Xxbz23avp0QRQtg0Y9U/KDWTGu4L7vuKDrrV6qq/VPL ZSUdmF9KJbgzroJ9g0BvZ0PAM9/Dzzd/k9t5A2q4HUKehNibv2d36aoY+7eznXRU5Gcffe SmjBmD7LXuDBLUwQ/2YRu1SJcaI6jC0sEopwP/oB62HAo1eN8EldviO/eFYueQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723024577; a=rsa-sha256; cv=none; b=wpD+fLF7uRtYfR3+UGTY2Q6sxHstQYJ3PRqU13d6+uuCtYznQig9MOufTgOtvvAxYmYiyd hoitBIx2EAZNv/y8ERZhvsMM4iz74KVV9GlOUVlsayBnEfaBBJ64g2aW0TcXx2JyRxPY21 +9VD7v76Z5t/yPtHHrZZXXgLuhZ+cexree3ZKCKJf8Aoo5pCVyur/adC0AeupreejcA58j IYg+bOZfr3hdyOI0KGjSlen2D6SKO4slPbCJzEpcb5yjbJFgQ9woxSRAE+YivLS/UVoh5T ruoDp/GrZJ3S/+t3SvUD9pVtVvd6aR+yXmDzSb9dDQk0Kse2VcUIqDFlaUHTdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723024577; 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=XMtkufqljiyBqJPOWj8jnFp1IkRY2hGxhEvyFCB/d8w=; b=bOKcezjAyCixDGOekEQbRPGRO2z5FWeXHmNwiHqZwosCosgNhqGzkLBhJOfpNkfmuGiZTQ sUfsRvVjZQa/FXDb7H6FH5cffD8wsxBC2FrjtfCFycRp+AYZaK/yeZxptKN77rejiiPAE7 HHyL0CbAfLpQ5QEz4uyVUPrLzxhK9vJHW7+ZdcgagQpViKerEJBMXHX6tfN7l5vj6c/vAi 3SVtyGAXDUNv3QnUDXAT78tYpSaNgTDy+ljUCHnHrmePYhzG4dwvBVGlwBwCCyJEdRT+hx qgwyL6znKVv7ePw7vcd0PRtRlqnjgQECZo+d8W4oai/4c5lIrj3R/DyeeDC5IQ== 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 4Wf5D15yl8zlmn; Wed, 7 Aug 2024 09:56:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4779uH2k044310; Wed, 7 Aug 2024 09:56:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4779uHUZ044307; Wed, 7 Aug 2024 09:56:17 GMT (envelope-from git) Date: Wed, 7 Aug 2024 09:56:17 GMT Message-Id: <202408070956.4779uHUZ044307@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 10ac6c48a3e4 - main - msun/ld80/e_powl.c: add const qualifiers to the static immutable values 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 10ac6c48a3e4ec6bb6f09d9c93e6ce5eb3381251 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=10ac6c48a3e4ec6bb6f09d9c93e6ce5eb3381251 commit 10ac6c48a3e4ec6bb6f09d9c93e6ce5eb3381251 Author: Konstantin Belousov AuthorDate: 2024-08-06 14:49:09 +0000 Commit: Konstantin Belousov CommitDate: 2024-08-07 08:46:48 +0000 msun/ld80/e_powl.c: add const qualifiers to the static immutable values Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46237 --- lib/msun/ld80/e_powl.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/msun/ld80/e_powl.c b/lib/msun/ld80/e_powl.c index b028d3cb7ff2..34978b964559 100644 --- a/lib/msun/ld80/e_powl.c +++ b/lib/msun/ld80/e_powl.c @@ -23,10 +23,10 @@ * P[0] x^n + P[1] x^(n-1) + ... + P[n] */ static inline long double -__polevll(long double x, long double *PP, int n) +__polevll(long double x, const long double *PP, int n) { long double y; - long double *P; + const long double *P; P = PP; y = *P++; @@ -42,10 +42,10 @@ __polevll(long double x, long double *PP, int n) * x^n + P[0] x^(n-1) + P[1] x^(n-2) + ... + P[n] */ static inline long double -__p1evll(long double x, long double *PP, int n) +__p1evll(long double x, const long double *PP, int n) { long double y; - long double *P; + const long double *P; P = PP; n -= 1; @@ -126,13 +126,13 @@ __p1evll(long double x, long double *PP, int n) /* log(1+x) = x - .5x^2 + x^3 * P(z)/Q(z) * on the domain 2^(-1/32) - 1 <= x <= 2^(1/32) - 1 */ -static long double P[] = { +static const long double P[] = { 8.3319510773868690346226E-4L, 4.9000050881978028599627E-1L, 1.7500123722550302671919E0L, 1.4000100839971580279335E0L, }; -static long double Q[] = { +static const long double Q[] = { /* 1.0000000000000000000000E0L,*/ 5.2500282295834889175431E0L, 8.4000598057587009834666E0L, @@ -141,7 +141,7 @@ static long double Q[] = { /* A[i] = 2^(-i/32), rounded to IEEE long double precision. * If i is even, A[i] + B[i/2] gives additional accuracy. */ -static long double A[33] = { +static const long double A[33] = { 1.0000000000000000000000E0L, 9.7857206208770013448287E-1L, 9.5760328069857364691013E-1L, @@ -176,7 +176,7 @@ static long double A[33] = { 5.1094857432705833910408E-1L, 5.0000000000000000000000E-1L, }; -static long double B[17] = { +static const long double B[17] = { 0.0000000000000000000000E0L, 2.6176170809902549338711E-20L, -1.0126791927256478897086E-20L, @@ -199,7 +199,7 @@ static long double B[17] = { /* 2^x = 1 + x P(x), * on the interval -1/32 <= x <= 0 */ -static long double R[] = { +static const long double R[] = { 1.5089970579127659901157E-5L, 1.5402715328927013076125E-4L, 1.3333556028915671091390E-3L,