diff options
author | 2006-05-05 20:10:25 +0000 | |
---|---|---|
committer | 2006-05-05 20:10:25 +0000 | |
commit | ed994b09be3c66557aaf39727407695f6dbea61e (patch) | |
tree | 4f8270588b763553e5a512a1c1cb6bf2abc6e9b1 /lib/libm/src | |
parent | test pointer casts (diff) | |
download | wireguard-openbsd-ed994b09be3c66557aaf39727407695f6dbea61e.tar.xz wireguard-openbsd-ed994b09be3c66557aaf39727407695f6dbea61e.zip |
delint; ok millert@ beck@
Diffstat (limited to 'lib/libm/src')
-rw-r--r-- | lib/libm/src/e_j0f.c | 4 | ||||
-rw-r--r-- | lib/libm/src/e_j1f.c | 2 | ||||
-rw-r--r-- | lib/libm/src/s_cosf.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/lib/libm/src/e_j0f.c b/lib/libm/src/e_j0f.c index ee100cdac86..02471711017 100644 --- a/lib/libm/src/e_j0f.c +++ b/lib/libm/src/e_j0f.c @@ -63,7 +63,7 @@ __ieee754_j0f(float x) * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) */ - if(ix>0x80000000) z = (invsqrtpi*cc)/sqrtf(x); + if(ix>0x80000000U) z = (invsqrtpi*cc)/sqrtf(x); else { u = pzerof(x); v = qzerof(x); z = invsqrtpi*(u*cc-v*ss)/sqrtf(x); @@ -137,7 +137,7 @@ __ieee754_y0f(float x) if ((s*c)<zero) cc = z/ss; else ss = z/cc; } - if(ix>0x80000000) z = (invsqrtpi*ss)/sqrtf(x); + if(ix>0x80000000U) z = (invsqrtpi*ss)/sqrtf(x); else { u = pzerof(x); v = qzerof(x); z = invsqrtpi*(u*ss+v*cc)/sqrtf(x); diff --git a/lib/libm/src/e_j1f.c b/lib/libm/src/e_j1f.c index b11851d1523..bccc8f68ccc 100644 --- a/lib/libm/src/e_j1f.c +++ b/lib/libm/src/e_j1f.c @@ -64,7 +64,7 @@ __ieee754_j1f(float x) * j1(x) = 1/sqrt(pi) * (P(1,x)*cc - Q(1,x)*ss) / sqrt(x) * y1(x) = 1/sqrt(pi) * (P(1,x)*ss + Q(1,x)*cc) / sqrt(x) */ - if(ix>0x80000000) z = (invsqrtpi*cc)/sqrtf(y); + if(ix>0x80000000U) z = (invsqrtpi*cc)/sqrtf(y); else { u = ponef(y); v = qonef(y); z = invsqrtpi*(u*cc-v*ss)/sqrtf(y); diff --git a/lib/libm/src/s_cosf.c b/lib/libm/src/s_cosf.c index ea283e74728..d17db5716e6 100644 --- a/lib/libm/src/s_cosf.c +++ b/lib/libm/src/s_cosf.c @@ -20,8 +20,6 @@ static char rcsid[] = "$NetBSD: s_cosf.c,v 1.4 1995/05/10 20:47:03 jtc Exp $"; #include "math.h" #include "math_private.h" -static const float one=1.0; - float cosf(float x) { |