Commit 3b4f3977 authored by Raymond Toy's avatar Raymond Toy
Browse files

Fix compiler warning about else

Add braces around the else clause that's indented as if it were part
of the else clause.  Inspection of the algorithm indicates that this
is probably the intended code and in this case doesn't change what
gets executed because the following statements would have been anyway.

Also verified a few random values that `(asin x)` and `(asin (float x
1w0))` produce the same values.  Only need to test 2^-27 <= x < 0.5.
parent dbf7c0af
......@@ -94,12 +94,13 @@ qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
return x;
} else
} else {
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;
return x+x*w;
/* 1> |x|>= 0.5 */
w = one-fabs(x);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment