Debian Codegraph @

debian/patches/infinity

raw symbols SCIP
1 Description: unconditionally use INFINITY from cmath as __infinity
2 Upstream has a number of definitions for __infinity, based on a
3 mixture of architecture and platform. This list is incomplete, not
4 functional (FTBFS on Debian alpha), and defaults to a random floating
5 point value on any architecture unknown to upstream.
6 Author: Thibaut Paumard
7 Origin: vendor
8 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845437
9 Forwarded: yes
10 Last-Update: 2016-11-23
11 ---
12 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
13 --- a/C++/Include/nbr_spx.h
14 +++ b/C++/Include/nbr_spx.h
15 @@ -89,6 +89,7 @@
16 /*
17 * $Id: nbr_spx.h,v 1.6 2014/10/06 15:09:40 j_novak Exp $
18 * $Log: nbr_spx.h,v $
19 + *
20 * Revision 1.6 2014/10/06 15:09:40 j_novak
21 * Modified #include directives to use c++ syntax.
22 *
23 @@ -133,41 +134,7 @@
24 *
25 */
26
27 -#ifdef __alpha
28 -#include <cfloat>
29 -#define __infinity DBL_INFINITY
30 -#else
31 -#ifdef __hppa
32 -#include <cmath>
33 -#define __infinity HUGE_VAL
34 -#else
35 -#ifdef __linux
36 -#include <cmath>
37 -#define __infinity HUGE_VAL
38 -#else
39 -#ifdef __aix
40 -#include <cmath>
41 -#define __infinity HUGE_VAL
42 -#else
43 -#ifdef __ppc__
44 -#include <cmath>
45 -#define __infinity INFINITY
46 -#else
47 -#ifdef __i386__
48 -#include <cmath>
49 -#define __infinity INFINITY
50 -#else
51 -#ifdef __x86_64__
52 #include <cmath>
53 #define __infinity INFINITY
54 -#else
55 -extern double __infinity ;
56 -#endif
57 -#endif
58 -#endif
59 -#endif
60 -#endif
61 -#endif
62 -#endif
63
64 #endif