Debian Codegraph @

dwsys/NUMmachar.h

raw symbols SCIP
1 #ifndef _NUMmachar_h_
2 #define _NUMmachar_h_
3 /* NUMmachar.h
4 *
5 * Copyright (C) 1994-2011 David Weenink
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 /*
22 djmw 20020812 GPL header
23 djmw 20110308 Latest modification
24 */
25
26 struct structmachar_Table
27 {
28 int base; /* Radix in which numbers are presented. */
29 int t; /* Number of base digits in mantissa*/
30 int emin; /* Minimum exponent before (gradual) underflow */
31 int emax; /* Largest exponent before overflow */
32 int rnd; /* 1 when rounding occurs in addition, 0 otherwise */
33 double prec; /* Quantization step (eps*base) */
34 double eps; /* Quantization error (relative machine precision) */
35 double rmin; /* Underflow threshold - base**(emin-1) */
36 double sfmin; /* Safe minimum, such that 1/sfmin does not overflow */
37 double rmax; /* Overflow threshold - (base**emax)*(1-eps)*/
38 };
39
40 typedef struct structmachar_Table *machar_Table;
41
42 inline machar_Table NUMfpp = nullptr;
43
44 void NUMmachar ();
45
46 #endif /* _NUMmachar_h_ */