From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14053 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dan Gohman Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] Fix unintended global symbols in atanl.c Date: Wed, 3 Apr 2019 05:56:08 -0700 Message-ID: Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000acb16005859fc733" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="224929"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14069-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 03 14:56:36 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hBfRT-000wNT-D9 for gllmg-musl@m.gmane.org; Wed, 03 Apr 2019 14:56:35 +0200 Original-Received: (qmail 26539 invoked by uid 550); 3 Apr 2019 12:56:32 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 26492 invoked from network); 3 Apr 2019 12:56:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=KMN+VC7Rp+bxjykFv6OHV0TUmjXUAVAIb/V7tyZuuKA=; b=HnPHDfh8bS9/b6hRc7QyUgLVgvEmZPvgYZOxrwZFWkiWmq4XYIRxQDnK72GGkqwVjv WorVIzJmmXbF0sIyHIHW8ldB9N43hTuts/6wXYr2AyeiNbiZTz5oQng3PvuvEmDeKZFO k9xQanrw0eXaGS5NVekhoqDoVpa2dw9aHob5A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KMN+VC7Rp+bxjykFv6OHV0TUmjXUAVAIb/V7tyZuuKA=; b=GmiUH6sTv9GLGQNYtE0zxrt1p0b4vRzvBM8VOzUkH2pzRiso+CIJObRIGGUJcgS92T XoY2iKMaSD/h6hjHwRaqMx/Nk9suMok+/8iuJ+bTkey/QvONtVzpJ0xP/1dzWIoG1ps8 dnBb2jC/ICn6spuyRElownKDD1lWLRguY3hPdKjFPFK9a0mSe++HITg8X3qunKdqIHFz 48Lb1TSpRSKb4VxgA0RDJ4q/DEFxeWVNGSNvtrV7bvNFg4Ynm9B4iaJEBhKf7RVY25n8 4FKPu0t1Dxz7bm4anPnc/UzDO8D90kuGax7vPWlKC8KqkgoWCa1Ms+UDr0RSDR5ad0gP oCEw== X-Gm-Message-State: APjAAAWWmCzuVCmJjqRxe5fCUBd6lkOrTMhM7NoKET1Mr8NR3RT+aeY4 5RDiMdtu9TJmezvGVWoNd8nMePuzjiR1t2fw/JDZ1m6KO2o= X-Google-Smtp-Source: APXvYqxYwhi0tSZ1EZJMAKxhHd1FWohJiyf6ZXQbBg0p2iYfQZAbrGjNqghGRi0vHcrHBi3tN3VPGj3ccdmg21wv49E= X-Received: by 2002:a6b:8b90:: with SMTP id n138mr6502567iod.75.1554296179817; Wed, 03 Apr 2019 05:56:19 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:14053 Archived-At: --000000000000acb16005859fc733 Content-Type: text/plain; charset="UTF-8" Mark atanhi, atanlo, and aT in atanl.c as static, as they're not intended to be part of the public API. These are already static in the LDBL_MANT_DIG == 64 code, so this patch is just making the LDBL_MANT_DIG == 113 code do the same thing. --- src/math/atanl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/math/atanl.c b/src/math/atanl.c index 79a3edb8..c3b0c926 100644 --- a/src/math/atanl.c +++ b/src/math/atanl.c @@ -70,21 +70,21 @@ static long double T_odd(long double x) #elif LDBL_MANT_DIG == 113 #define EXPMAN(u) ((u.i.se & 0x7fff)<<8 | u.i.top>>8) -const long double atanhi[] = { +static const long double atanhi[] = { 4.63647609000806116214256231461214397e-01L, 7.85398163397448309615660845819875699e-01L, 9.82793723247329067985710611014666038e-01L, 1.57079632679489661923132169163975140e+00L, }; -const long double atanlo[] = { +static const long double atanlo[] = { 4.89509642257333492668618435220297706e-36L, 2.16795253253094525619926100651083806e-35L, -2.31288434538183565909319952098066272e-35L, 4.33590506506189051239852201302167613e-35L, }; -const long double aT[] = { +static const long double aT[] = { 3.33333333333333333333333333333333125e-01L, -1.99999999999999999999999999999180430e-01L, 1.42857142857142857142857142125269827e-01L, -- 2.17.1 --000000000000acb16005859fc733 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Mark atanhi, atanlo, and aT in atanl.c as= static, as they're not intended to be part of the public API.

T= hese are already static in the LDBL_MANT_DIG =3D=3D 64 code, so this patch = is just making the LDBL_MANT_DIG =3D=3D 113 code do the same thing.
---<= br>=C2=A0src/math/atanl.c | 6 +++---
=C2=A01 file changed, 3 insertions(= +), 3 deletions(-)

diff --git a/src/math/atanl.c b/src/math/atanl.c<= br>index 79a3edb8..c3b0c926 100644
--- a/src/math/atanl.c
+++ b/src/m= ath/atanl.c
@@ -70,21 +70,21 @@ static long double T_odd(long double x)<= br>=C2=A0#elif LDBL_MANT_DIG =3D=3D 113
=C2=A0#define EXPMAN(u) ((u.i.se & 0x7fff)<<8 | u.i.top>>8)
-const long double atanhi[] =3D {
+static const long double atanhi= [] =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4.636476090008= 06116214256231461214397e-01L,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 7.85398163397448309615660845819875699e-01L,
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 9.82793723247329067985710611014666038e-01L,
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1.570796326794896619231321= 69163975140e+00L,
=C2=A0};

-const long double atanlo[] =3D {
+= static const long double atanlo[] =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 4.89509642257333492668618435220297706e-36L,
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2.167952532530945256199261006510838= 06e-35L,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -2.31288434538183565= 909319952098066272e-35L,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 4.33590506506189051239852201302167613e-35L,
=C2=A0};

-const l= ong double aT[] =3D {
+static const long double aT[] =3D {
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 3.333333333333333333333333333333331= 25e-01L,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -1.99999999999999999= 999999999999180430e-01L,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 1.42857142857142857142857142125269827e-01L,
--
2.17.1

--000000000000acb16005859fc733--