public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain Buclaw <ibuclaw@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/ibuclaw/heads/darwin)] D, Math, IBM128 : Placeholder values for constants. Date: Sun, 14 Mar 2021 22:01:57 +0000 (GMT) [thread overview] Message-ID: <20210314220157.5A0A6386F46E@sourceware.org> (raw) https://gcc.gnu.org/g:e603939ed3e75236cc275608a95ed998283d7c91 commit e603939ed3e75236cc275608a95ed998283d7c91 Author: Iain Sandoe <iain@sandoe.co.uk> 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");
next reply other threads:[~2021-03-14 22:01 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-14 22:01 Iain Buclaw [this message] -- strict thread matches above, loose matches on Subject: below -- 2021-09-17 14:35 Iain Buclaw 2021-04-19 18:06 Iain Buclaw 2021-04-10 17:02 Iain Buclaw 2021-04-10 15:05 Iain Buclaw 2021-03-07 17:03 Iain Buclaw 2021-01-30 19:10 Iain Buclaw 2021-01-28 17:33 Iain Buclaw
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210314220157.5A0A6386F46E@sourceware.org \ --to=ibuclaw@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).