mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix asin
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:
parent
8dd5186a0d
commit
3127b9d34d
7
third-party/fdlibm/s_asin.c
vendored
7
third-party/fdlibm/s_asin.c
vendored
@ -63,7 +63,7 @@
|
||||
double
|
||||
asin (double x)
|
||||
{
|
||||
double t = 0, w, p, q, c, r, s;
|
||||
double t, w, p, q, c, r, s;
|
||||
int hx, ix;
|
||||
|
||||
hx = __HI (x);
|
||||
@ -85,10 +85,7 @@ asin (double x)
|
||||
return x;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
t = x * x;
|
||||
}
|
||||
t = x * x;
|
||||
p = t * (pS0 + t * (pS1 + t * (pS2 + t * (pS3 + t * (pS4 + t * pS5)))));
|
||||
q = one + t * (qS1 + t * (qS2 + t * (qS3 + t * qS4)));
|
||||
w = p / q;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user