31 lines
702 B
Text
31 lines
702 B
Text
$NetBSD: patch-aa,v 1.3 2006/06/09 09:58:57 rillig Exp $
|
|
|
|
--- src/ipmpar.c.orig Mon Jan 29 05:01:11 2001
|
|
+++ src/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;
|