AlmostEqualUlps setting has been too strict: it failed in MINGW gcc.
3 --> 10
This commit is contained in:
parent
0d86539638
commit
5adef0cf36
|
|
@ -77,8 +77,8 @@ PTpower(double arg1, double arg2)
|
||||||
else {
|
else {
|
||||||
/* If arg2 is quasi an integer, round it to have pow not fail
|
/* If arg2 is quasi an integer, round it to have pow not fail
|
||||||
when arg1 is negative. Takes into account the double
|
when arg1 is negative. Takes into account the double
|
||||||
representation which sometimes differs in the last digit. */
|
representation which sometimes differs in the last digit(s). */
|
||||||
if (AlmostEqualUlps(trunc(arg2), arg2, 3))
|
if (AlmostEqualUlps(trunc(arg2), arg2, 10))
|
||||||
res = pow(arg1, round(arg2));
|
res = pow(arg1, round(arg2));
|
||||||
else
|
else
|
||||||
/* As per LTSPICE specification for ** */
|
/* As per LTSPICE specification for ** */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue