From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1873) id 13ABA386197F; Thu, 28 Jan 2021 17:33:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13ABA386197F 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: cdfa8f519a7b028e5a5dffff9f347152f5c089a1 X-Git-Newrev: 294c800914397b6f82597ef7166b253413f946be Message-Id: <20210128173310.13ABA386197F@sourceware.org> Date: Thu, 28 Jan 2021 17:33:10 +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: Thu, 28 Jan 2021 17:33:10 -0000 https://gcc.gnu.org/g:294c800914397b6f82597ef7166b253413f946be commit 294c800914397b6f82597ef7166b253413f946be 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");