pkgsrc/math/dcdflib.c/patches/patch-aa
2001-01-29 21:43:14 +00:00

31 lines
691 B
Text

$NetBSD: patch-aa,v 1.2 2001/01/29 21:43:14 jtb Exp $
--- ipmpar.c.orig Mon Jan 29 05:01:11 2001
+++ ipmpar.c
@@ -1,3 +1,6 @@
+#include <float.h>
+#include <limits.h>
+
int ipmpar(int*);
/*
-----------------------------------------------------------------------
@@ -69,6 +72,19 @@
{
static int imach[11];
static int ipmpar;
+
+ imach[1] = 2;
+ imach[2] = sizeof(int)*(CHAR_BIT) - 1;
+ imach[3] = INT_MAX;
+ imach[4] = FLT_RADIX;
+ imach[5] = FLT_MANT_DIG;
+ imach[6] = FLT_MIN_EXP;
+ imach[7] = FLT_MAX_EXP;
+ imach[8] = DBL_MANT_DIG;
+ imach[9] = DBL_MIN_EXP;
+ imach[10] = FLT_MAX_EXP;
+
+
/* MACHINE CONSTANTS FOR AMDAHL MACHINES. */
/*
imach[1] = 2;