From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1873) id EBE74388A438; Sat, 10 Apr 2021 15:05:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBE74388A438 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Iain Buclaw To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/ibuclaw/heads/darwin)] D, Math, IBM128 : Placeholder values for constants. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/users/ibuclaw/heads/darwin X-Git-Oldrev: 4f2b5da11d836f669723ad27ea3bb6a9f7523840 X-Git-Newrev: 793a520acfb2d27d37618a76acb72dcee1fe515c Message-Id: <20210410150540.EBE74388A438@sourceware.org> Date: Sat, 10 Apr 2021 15:05:40 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2021 15:05:41 -0000 https://gcc.gnu.org/g:793a520acfb2d27d37618a76acb72dcee1fe515c commit 793a520acfb2d27d37618a76acb72dcee1fe515c Author: Iain Sandoe Date: Fri Dec 11 00:57:30 2020 +0000 D, Math, IBM128 : Placeholder values for constants. These need to be checked and updated. Diff: --- libphobos/src/std/internal/math/gammafunction.d | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libphobos/src/std/internal/math/gammafunction.d b/libphobos/src/std/internal/math/gammafunction.d index c9677c72463..981154e1ad3 100644 --- a/libphobos/src/std/internal/math/gammafunction.d +++ b/libphobos/src/std/internal/math/gammafunction.d @@ -257,6 +257,8 @@ else static if (floatTraits!(real).realFormat == RealFormat.ieeeExtended53) enum real MAXGAMMA = 1755.5483429L; else static if (floatTraits!(real).realFormat == RealFormat.ieeeDouble) enum real MAXGAMMA = 171.6243769L; +else static if (floatTraits!(real).realFormat == RealFormat.ibmExtended) + enum real MAXGAMMA = 1755.5483429L; else static assert(0, "missing MAXGAMMA for other real types"); @@ -615,6 +617,11 @@ else static if (floatTraits!(real).realFormat == RealFormat.ieeeDouble) enum real MAXLOG = 0x1.62e42fefa39efp+9L; // log(real.max) enum real MINLOG = -0x1.74385446d71c3p+9L; // log(real.min_normal*real.epsilon) = log(smallest denormal) } +else static if (floatTraits!(real).realFormat == RealFormat.ibmExtended) +{ + enum real MAXLOG = 0x1.62e42fefa39ef35793c7673007e6p+9L; // log(real.max) + enum real MINLOG = -0x1.6546282207802c89d24d65e96274p+9L; // log(real.min_normal*real.epsilon) = log( +} else static assert(0, "missing MAXLOG and MINLOG for other real types");