From nobody Wed Aug 14 03:26:16 2024 X-Original-To: dev-commits-src-branches@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 4WkDDm5ltHz5SVGr; Wed, 14 Aug 2024 03:26:16 +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 4WkDDm59JVz4n1n; Wed, 14 Aug 2024 03:26:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723605976; 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=DcO80OQa27xczedqyuBkmFFJ0yPw7ZK25pXeAzOt0qI=; b=rAsHc3ADmfDVndbXUlZ59sjMXe3awXOUvQZsq1pAmPqDVmQG/lNgVgKSYGX07tPsdqUY7k n0zRqKfFe7Y81smpborlT1BaIphpBnCTdx0VfWOax9UAaYKkwXtUDaubJwCH/SdlxFmSSK CNTZ82VhaZUahs6FarTLh+Y7OF7c9In+l658JSQipOogSCFkLWzBPtojCuWNivL18qgDqj 49wrsvWz/ZbSOVGtT8fESaczdPYcSXp+1QiNuPrtbDn2XAAfEXg6EUC+qgFJq749kZvlwh iCw+d5xU23lxo3jCOr/dN5Z6qCQmP6vNB/m3mlFMtbNDLUxojbsQr1hVJs+vvg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723605976; a=rsa-sha256; cv=none; b=YWE+KiX+yNcje/qWzHg8EmHiGa6dc1O1EHpuR4YOv0wNSY6DLHSvWMtd7N9xFIyAgwov24 aiw8vOYqyZm0HUFkUTZ6MsdFOxpX13QF83tFqZVbO+ncPXvDNuyE3b/k9ASLuQB4uUS2WP PUjq39B0FGH37XZMIxLUhZuT6eT33XC1G3NjCgKaC3tqinXAodoHHKaLOea0IaoYq/eNzT 3trnbYAIppxmf9RHGZcNX4cLFbid4Jv3vutUp4DuL0et/NPBDzNMjxvy2uvQsJhd3X04ba ZpgqHQbqShNE7XFv5r38of89a1kxpK3lDdoqztjUsw6ebY8LIGqSTh2KD2OnFw== 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=1723605976; 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=DcO80OQa27xczedqyuBkmFFJ0yPw7ZK25pXeAzOt0qI=; b=Tn51k2hfmfCQSYU6gkL0rQItZc0/YK3e2X6FiGTduphHM7cZcEZ8ePz3Rtr3c1RCoRW1B2 t6RdKETgnvY1UOzxRmdQwXVv2PDPXji2gdNnSYngP7uZq1RYdrI6bEYJdK5X3oAZvXqVQ3 T8yYTw41JaKacCTshjy2FHITxVdZuilqUdRDljSCPbihbOulNlJQMxfZnTNEHbZev1oQBf onWEDHhAR9O2AcfD9fchtSpA3FsrA2uyaYmKJ+mjbzLMDq9BzSVtzTVxJvXp5tt6Ru9tqD 6M5kS4snfla/g1GqU6p8HP9LFTaRsXckkNeo4RKC1P10XVTRk+yxO+M4nKbDJw== 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 4WkDDm4nVgzdhX; Wed, 14 Aug 2024 03:26:16 +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 47E3QG82052145; Wed, 14 Aug 2024 03:26:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47E3QGmc052141; Wed, 14 Aug 2024 03:26:16 GMT (envelope-from git) Date: Wed, 14 Aug 2024 03:26:16 GMT Message-Id: <202408140326.47E3QGmc052141@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: ac4866f142d8 - stable/14 - msun/ld80/e_powl.c: add const qualifiers to the static immutable values List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: ac4866f142d8ba9ee8f102ce38071f17f5c100f5 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ac4866f142d8ba9ee8f102ce38071f17f5c100f5 commit ac4866f142d8ba9ee8f102ce38071f17f5c100f5 Author: Konstantin Belousov AuthorDate: 2024-08-06 14:49:09 +0000 Commit: Konstantin Belousov CommitDate: 2024-08-14 03:25:55 +0000 msun/ld80/e_powl.c: add const qualifiers to the static immutable values (cherry picked from commit 10ac6c48a3e4ec6bb6f09d9c93e6ce5eb3381251) --- 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,