X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2F__tandf.c;h=25047eeee9c098894010a3984372ba63cb698656;hb=a3e2f3c2b15053a2f9faccc62947b82f2219599f;hp=36a8214ed36a3f2ab0ee1bdd97e3a3e1f83540e1;hpb=b69f695acedd4ce2798ef9ea28d834ceccc789bd;p=musl diff --git a/src/math/__tandf.c b/src/math/__tandf.c index 36a8214e..25047eee 100644 --- a/src/math/__tandf.c +++ b/src/math/__tandf.c @@ -25,9 +25,9 @@ static const double T[] = { 0x1362b9bf971bcd.0p-59, /* 0.00946564784943673166728 */ }; -float __tandf(double x, int iy) +float __tandf(double x, int odd) { - double z,r,w,s,t,u; + double_t z,r,w,s,t,u; z = x*x; /* @@ -50,6 +50,5 @@ float __tandf(double x, int iy) s = z*x; u = T[0] + z*T[1]; r = (x + s*u) + (s*w)*(t + w*r); - if(iy==1) return r; - else return -1.0/r; + return odd ? -1.0/r : r; }