summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-05-05 20:10:26 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-05-05 20:10:26 +0000
commitcadd6f1c5ec312e1d443fa9aefd0d7549b3736f0 (patch)
treed8ecbc01f369a7172575554f83804dc6115ada9e
parent05073aa4a229b774efd26755d5b7d55d80a5f6a9 (diff)
delint; ok millert@ beck@
-rw-r--r--include/math.h4
-rw-r--r--lib/libm/src/e_j0f.c4
-rw-r--r--lib/libm/src/e_j1f.c2
-rw-r--r--lib/libm/src/s_cosf.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/include/math.h b/include/math.h
index ac89992e5f3..1f317da5d02 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: math.h,v 1.11 2005/12/13 00:35:22 millert Exp $ */
+/* $OpenBSD: math.h,v 1.12 2006/05/05 20:10:25 otto Exp $ */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -23,7 +23,7 @@
* ANSI/POSIX
*/
extern char __infinity[];
-#define HUGE_VAL (*(double *) __infinity)
+#define HUGE_VAL (*(double *)(void *)__infinity)
/*
* C99
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)
{