fix large floating point constants for SUN
authorBill Shannon <shannon@ucbvax.Berkeley.EDU>
Sun, 28 Nov 1982 11:56:10 +0000 (03:56 -0800)
committerBill Shannon <shannon@ucbvax.Berkeley.EDU>
Sun, 28 Nov 1982 11:56:10 +0000 (03:56 -0800)
SCCS-vsn: usr.bin/spline/spline.c 4.2

usr/src/usr.bin/spline/spline.c

index e7f1d36..df361ee 100644 (file)
@@ -1,8 +1,9 @@
-static char *sccsid = "@(#)spline.c    4.1 (Berkeley) %G%";
+static char *sccsid = "@(#)spline.c    4.2 (Berkeley) %G%";
 #include <stdio.h>
 #include <stdio.h>
+#include <math.h>
 
 #define NP 1000
 
 #define NP 1000
-#define INF 1.e37
+#define INF HUGE
 
 struct proj { int lbf,ubf; float a,b,lb,ub,quant,mult,val[NP]; } x,y;
 float *diag, *r;
 
 struct proj { int lbf,ubf; float a,b,lb,ub,quant,mult,val[NP]; } x,y;
 float *diag, *r;