mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
std.internal.math.gammafunction: Define MAXGAMMA, MAXLOG, MINLOG for FreeBSD x86 reals
This commit is contained in:
parent
780521d928
commit
a98d770398
1 changed files with 7 additions and 0 deletions
|
@ -253,6 +253,8 @@ static if (floatTraits!(real).realFormat == RealFormat.ieeeQuadruple)
|
||||||
enum real MAXGAMMA = 1755.5483429L;
|
enum real MAXGAMMA = 1755.5483429L;
|
||||||
else static if (floatTraits!(real).realFormat == RealFormat.ieeeExtended)
|
else static if (floatTraits!(real).realFormat == RealFormat.ieeeExtended)
|
||||||
enum real MAXGAMMA = 1755.5483429L;
|
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)
|
else static if (floatTraits!(real).realFormat == RealFormat.ieeeDouble)
|
||||||
enum real MAXGAMMA = 171.6243769L;
|
enum real MAXGAMMA = 171.6243769L;
|
||||||
else
|
else
|
||||||
|
@ -603,6 +605,11 @@ else static if (floatTraits!(real).realFormat == RealFormat.ieeeExtended)
|
||||||
enum real MAXLOG = 0x1.62e42fefa39ef358p+13L; // log(real.max)
|
enum real MAXLOG = 0x1.62e42fefa39ef358p+13L; // log(real.max)
|
||||||
enum real MINLOG = -0x1.6436716d5406e6d8p+13L; // log(real.min_normal*real.epsilon) = log(smallest denormal)
|
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)
|
else static if (floatTraits!(real).realFormat == RealFormat.ieeeDouble)
|
||||||
{
|
{
|
||||||
enum real MAXLOG = 0x1.62e42fefa39efp+9L; // log(real.max)
|
enum real MAXLOG = 0x1.62e42fefa39efp+9L; // log(real.max)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue