Re-styling of the sources revealed that the false branch of an
if-else construct in `asin` did not contain all the statements
that it should. (This was an issue -- a bad smell at least --
that's been around since 1995, according to the legacy SCCS ID.)

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2016-03-20 14:32:05 +01:00
parent 8dd5186a0d
commit 3127b9d34d
+2 -5
View File
@@ -63,7 +63,7 @@
double double
asin (double x) asin (double x)
{ {
double t = 0, w, p, q, c, r, s; double t, w, p, q, c, r, s;
int hx, ix; int hx, ix;
hx = __HI (x); hx = __HI (x);
@@ -85,10 +85,7 @@ asin (double x)
return x; return x;
} }
} }
else t = x * x;
{
t = x * x;
}
p = t * (pS0 + t * (pS1 + t * (pS2 + t * (pS3 + t * (pS4 + t * pS5))))); p = t * (pS0 + t * (pS1 + t * (pS2 + t * (pS3 + t * (pS4 + t * pS5)))));
q = one + t * (qS1 + t * (qS2 + t * (qS3 + t * qS4))); q = one + t * (qS1 + t * (qS2 + t * (qS3 + t * qS4)));
w = p / q; w = p / q;