diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-11-26 11:15:32 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-11-27 21:27:13 +0100 |
commit | 6ac67dddc31e6ab4f954e27e1f86e005537efc12 (patch) | |
tree | c666cde37bcbe432eded6aa61a54abf9b2367e15 /libphobos/src/std/internal/math | |
parent | 9285e0f694969dc2d1d9257378ddf6c8ef42de3c (diff) | |
download | gcc-6ac67dddc31e6ab4f954e27e1f86e005537efc12.zip gcc-6ac67dddc31e6ab4f954e27e1f86e005537efc12.tar.gz gcc-6ac67dddc31e6ab4f954e27e1f86e005537efc12.tar.bz2 |
libphobos: Merge upstream phobos 38873fe6e.
Adds support for FreeBSD/x86 53-bit precision reals, and removes all
support code and tests for the extern(Pascal) calling convention.
Reviewed-on: https://github.com/dlang/phobos/pull/7704
https://github.com/dlang/phobos/pull/7705
libphobos/ChangeLog:
* src/MERGE: Merge upstream phobos 38873fe6e.
Diffstat (limited to 'libphobos/src/std/internal/math')
-rw-r--r-- | libphobos/src/std/internal/math/gammafunction.d | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libphobos/src/std/internal/math/gammafunction.d b/libphobos/src/std/internal/math/gammafunction.d index dd20691..c9677c7 100644 --- a/libphobos/src/std/internal/math/gammafunction.d +++ b/libphobos/src/std/internal/math/gammafunction.d @@ -253,6 +253,8 @@ static if (floatTraits!(real).realFormat == RealFormat.ieeeQuadruple) enum real MAXGAMMA = 1755.5483429L; else static if (floatTraits!(real).realFormat == RealFormat.ieeeExtended) enum real MAXGAMMA = 1755.5483429L; +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 @@ -603,6 +605,11 @@ else static if (floatTraits!(real).realFormat == RealFormat.ieeeExtended) enum real MAXLOG = 0x1.62e42fefa39ef358p+13L; // log(real.max) enum real MINLOG = -0x1.6436716d5406e6d8p+13L; // log(real.min_normal*real.epsilon) = log(smallest denormal) } +else static if (floatTraits!(real).realFormat == RealFormat.ieeeExtended53) +{ + enum real MAXLOG = 0x1.62e42fefa39ef358p+13L; // log(real.max) + enum real MINLOG = -0x1.6436716d5406e6d8p+13L; // log(real.min_normal*real.epsilon) = log(smallest denormal) +} else static if (floatTraits!(real).realFormat == RealFormat.ieeeDouble) { enum real MAXLOG = 0x1.62e42fefa39efp+9L; // log(real.max) |