Debian Codegraph @

C++/Include/nbr_spx.h

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 /*
2 * Definition of special numbers (__infinity)
3 *
4 */
5
6 /*
7 * Copyright (c) 1999-2000 Jean-Alain Marck
8 * Copyright (c) 1999-2003 Eric Gourgoulhon
9 * Copyright (c) 2001 Joachim Frieben
10 * Copyright (c) 2003 Jerome Novak
11 * Copyright (c) 2003 Christian Klein
12 *
13 * This file is part of LORENE.
14 *
15 * LORENE is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
19 *
20 * LORENE is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with LORENE; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 *
29 */
30
31
32 #ifndef __NBR_SPX_
33 #define __NBR_SPX_
34
35 /*
36 * Definition des nombres particuliers (norme ieee)
37 *
38 * Actuellement:
39 * infini code comme __infinity
40 *
41 * On pourra mettre par la suite, au fur et a mesure des besoins:
42 *
43 * extern double __libm_qnan_d ;
44 * extern double __libm_inf_d ;
45 * extern double __libm_neginf_d ;
46 * extern double __infinity ;
47 *
48 * Les machines reconnuees sont:
49 * SGI (par defaut)
50 * DEC Alpha (__alpha)
51 * HP-PA (__hppa)
52 * PC Linux (__linux)
53 *
54 * Pour info:
55 *
56 * --------------------------------------------------------
57 * | |
58 * | Double Precision Format |
59 * | |
60 * | | bit 0 | bits 1 - 11 | bits 12 - 63 |
61 * | ----------------------------------------------- |
62 * | | Sign | Exponent | Mantissa | |
63 * | | | | |
64 * | |
65 * | \ msb lsb / \ msb lsb / |
66 * | |
67 * --------------------------------------------------------
68 *
69 * ----------------------------------------------
70 * | Condition: plus or minus ZERO |
71 * | |
72 * | Sign | Exponent | Mantissa |
73 * | | (All Zeros) | (All Zeros) |
74 * | |
75 * | Condition: plus or minus INFINITY |
76 * | |
77 * | Sign | Exponent | Mantissa |
78 * | | (All Ones) | (All Zeros) |
79 * | |
80 * | Condition: NaN (Not a Number) |
81 * | |
82 * | Sign | Exponent | Mantissa |
83 * | | (All Ones) | (Not All Zeros) |
84 * | |
85 * ----------------------------------------------
86 */
87
88
89 /*
90 * $Id: nbr_spx.h,v 1.6 2014/10/06 15:09:40 j_novak Exp $
91 * $Log: nbr_spx.h,v $
•92 *
93 * Revision 1.6 2014/10/06 15:09:40 j_novak
94 * Modified #include directives to use c++ syntax.
95 *
96 * Revision 1.5 2009/11/22 17:06:11 j_novak
97 * Patched to build on a Macbook Pro (thanks E. Schnetter)
98 *
99 * Revision 1.4 2007/06/16 22:19:23 m_saijo
100 * Add the case __i386__ for supporting Intel Mac.
101 *
102 * Revision 1.3 2003/02/05 13:51:40 e_gourgoulhon
103 * Added the case __ppc__ for MacOS X.
104 *
105 * Revision 1.2 2002/09/09 12:57:22 e_gourgoulhon
106 * Added the case of IBM AIX with xlC compiler.
107 *
108 * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
109 * LORENE
110 *
111 * Revision 2.2 2001/05/29 15:59:27 eric
112 * Ajout du cas des machines HP-PA (contribution de Joachim).
113 *
114 * Revision 2.1 2000/03/17 08:17:35 eric
115 * Mise en conformite Linux : huge_val.h ---> math.h
116 *
117 * Revision 2.0 1999/02/15 10:41:51 hyc
118 * *** empty log message ***
119 *
120 * Revision 2.1 1999/02/15 09:59:50 hyc
121 * *** empty log message ***
122 *
123 * Revision 1.3 1998/06/10 07:25:37 eric
124 * Ajout du cas PC Linux.
125 *
126 * Revision 1.2 1997/10/21 12:48:04 hyc
127 * *** empty log message ***
128 *
129 * Revision 1.1 1997/10/17 15:40:01 hyc
130 * Initial revision
131 *
132 *
133 * $Header: /cvsroot/Lorene/C++/Include/nbr_spx.h,v 1.6 2014/10/06 15:09:40 j_novak Exp $
134 *
135 */
136
137 #include <cmath>
138 #define __infinity INFINITY
139
140 #endif