blob: 32f2e000b85adfef89bd3eef1165fd81e4f6697f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-aa,v 1.1.1.1 2001/01/29 06:13:54 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] = (long) 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;
|