From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id 13A863858437; Mon, 18 Oct 2021 15:54:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13A863858437 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/iains/heads/d-for-darwin)] D, Math, IBM128 : Placeholder values for constants. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/users/iains/heads/d-for-darwin X-Git-Oldrev: 45f4704ecd85db974c9626c3ed05cf8e944fb336 X-Git-Newrev: 430d4329d9cd680a47c26e9b21c2183a06cf8e67 Message-Id: <20211018155453.13A863858437@sourceware.org> Date: Mon, 18 Oct 2021 15:54:53 +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: Mon, 18 Oct 2021 15:54:53 -0000 https://gcc.gnu.org/g:430d4329d9cd680a47c26e9b21c2183a06cf8e67 commit 430d4329d9cd680a47c26e9b21c2183a06cf8e67 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");