This file is indexed.

/usr/include/rheolef/promote.h is in librheolef-dev 6.6-1build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#ifndef _RHEOLEF_PROMOTE_H
#define _RHEOLEF_PROMOTE_H
///
/// This file is part of Rheolef.
///
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
///
/// Rheolef is free software; you can redistribute it and/or modify
/// it under the terms of the GNU General Public License as published by
/// the Free Software Foundation; either version 2 of the License, or
/// (at your option) any later version.
///
/// Rheolef is distributed in the hope that it will be useful,
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
/// GNU General Public License for more details.
///
/// You should have received a copy of the GNU General Public License
/// along with Rheolef; if not, write to the Free Software
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
/// 
/// =========================================================================
#include "rheolef/compiler.h"
namespace rheolef {
template<class T1, class T2>
struct promote_not_specialized_for_this_case {};

template<class T1, class T2>
struct promote { 
  typedef promote_not_specialized_for_this_case<T1,T2> type;
};
#define skit_promote(T1,T2) typename promote<T1,T2>::type 

template <> struct promote<char, char > { typedef int type; };
template <> struct promote<char, unsigned char > { typedef int type; };
template <> struct promote<char, short int > { typedef int type; };
template <> struct promote<char, short unsigned int > { typedef unsigned int type; };
template <> struct promote<char, int > { typedef int type; };
template <> struct promote<char, unsigned int > { typedef unsigned int type; };
template <> struct promote<char, long > { typedef long type; };
template <> struct promote<char, unsigned long > { typedef unsigned long type; };
template <> struct promote<char, float > { typedef float type; };
template <> struct promote<char, double > { typedef double type; };
template <> struct promote<char, long double > { typedef long double type; };
template <> struct promote<unsigned char, char > { typedef int type; };
template <> struct promote<unsigned char, unsigned char > { typedef int type; };
template <> struct promote<unsigned char, short int > { typedef int type; };
template <> struct promote<unsigned char, short unsigned int > { typedef unsigned int type; };
template <> struct promote<unsigned char, int > { typedef int type; };
template <> struct promote<unsigned char, unsigned int > { typedef unsigned int type; };
template <> struct promote<unsigned char, long > { typedef long type; };
template <> struct promote<unsigned char, unsigned long > { typedef unsigned long type; };
template <> struct promote<unsigned char, float > { typedef float type; };
template <> struct promote<unsigned char, double > { typedef double type; };
template <> struct promote<unsigned char, long double > { typedef long double type; };
template <> struct promote<short int, char > { typedef int type; };
template <> struct promote<short int, unsigned char > { typedef int type; };
template <> struct promote<short int, short int > { typedef int type; };
template <> struct promote<short int, short unsigned int > { typedef unsigned int type; };
template <> struct promote<short int, int > { typedef int type; };
template <> struct promote<short int, unsigned int > { typedef unsigned int type; };
template <> struct promote<short int, long > { typedef long type; };
template <> struct promote<short int, unsigned long > { typedef unsigned long type; };
template <> struct promote<short int, float > { typedef float type; };
template <> struct promote<short int, double > { typedef double type; };
template <> struct promote<short unsigned int, char > { typedef unsigned int type; };
template <> struct promote<short unsigned int, unsigned char > { typedef unsigned int type; };
template <> struct promote<short unsigned int, short int > { typedef unsigned int type; };
template <> struct promote<short unsigned int, short unsigned int > { typedef unsigned int type; };
template <> struct promote<short unsigned int, int > { typedef unsigned int type; };
template <> struct promote<short unsigned int, unsigned int > { typedef unsigned int type; };
template <> struct promote<short unsigned int, long > { typedef long type; };
template <> struct promote<short unsigned int, unsigned long > { typedef unsigned long type; };
template <> struct promote<short unsigned int, float > { typedef float type; };
template <> struct promote<short unsigned int, double > { typedef double type; };
template <> struct promote<short unsigned int, long double > { typedef long double type; };
template <> struct promote<int, char > { typedef int type; };
template <> struct promote<int, unsigned char > { typedef int type; };
template <> struct promote<int, short int > { typedef int type; };
template <> struct promote<int, short unsigned int > { typedef unsigned int type; };
template <> struct promote<int, int > { typedef int type; };
template <> struct promote<int, unsigned int > { typedef unsigned int type; };
template <> struct promote<int, long > { typedef long type; };
template <> struct promote<int, unsigned long > { typedef unsigned long type; };
template <> struct promote<int, float > { typedef float type; };
template <> struct promote<int, double > { typedef double type; };
template <> struct promote<int, long double > { typedef long double type; };
template <> struct promote<unsigned int, char > { typedef unsigned int type; };
template <> struct promote<unsigned int, unsigned char > { typedef unsigned int type; };
template <> struct promote<unsigned int, short int > { typedef unsigned int type; };
template <> struct promote<unsigned int, short unsigned int > { typedef unsigned int type; };
template <> struct promote<unsigned int, int > { typedef unsigned int type; };
template <> struct promote<unsigned int, unsigned int > { typedef unsigned int type; };
template <> struct promote<unsigned int, long > { typedef long type; };
template <> struct promote<unsigned int, unsigned long > { typedef unsigned long type; };
template <> struct promote<unsigned int, float > { typedef float type; };
template <> struct promote<unsigned int, double > { typedef double type; };
template <> struct promote<unsigned int, long double > { typedef long double type; };
template <> struct promote<long, char > { typedef long type; };
template <> struct promote<long, unsigned char > { typedef long type; };
template <> struct promote<long, short int > { typedef long type; };
template <> struct promote<long, short unsigned int > { typedef long type; };
template <> struct promote<long, int > { typedef long type; };
template <> struct promote<long, unsigned int > { typedef long type; };
template <> struct promote<long, long > { typedef long type; };
template <> struct promote<long, unsigned long > { typedef unsigned long type; };
template <> struct promote<long, float > { typedef float type; };
template <> struct promote<long, double > { typedef double type; };
template <> struct promote<long, long double > { typedef long double type; };
template <> struct promote<unsigned long, char > { typedef unsigned long type; };
template <> struct promote<unsigned long, unsigned char > { typedef unsigned long type; };
template <> struct promote<unsigned long, short int > { typedef unsigned long type; };
template <> struct promote<unsigned long, short unsigned int > { typedef unsigned long type; };
template <> struct promote<unsigned long, int > { typedef unsigned long type; };
template <> struct promote<unsigned long, unsigned int > { typedef unsigned long type; };
template <> struct promote<unsigned long, long > { typedef unsigned long type; };
template <> struct promote<unsigned long, unsigned long > { typedef unsigned long type; };
template <> struct promote<unsigned long, float > { typedef float type; };
template <> struct promote<unsigned long, double > { typedef double type; };
template <> struct promote<unsigned long, long double > { typedef long double type; };
template <> struct promote<float, char > { typedef float type; };
template <> struct promote<float, unsigned char > { typedef float type; };
template <> struct promote<float, short int > { typedef float type; };
template <> struct promote<float, short unsigned int > { typedef float type; };
template <> struct promote<float, int > { typedef float type; };
template <> struct promote<float, unsigned int > { typedef float type; };
template <> struct promote<float, long > { typedef float type; };
template <> struct promote<float, unsigned long > { typedef float type; };
template <> struct promote<float, float > { typedef float type; };
template <> struct promote<float, double > { typedef double type; };
template <> struct promote<float, long double > { typedef long double type; };
template <> struct promote<double, char > { typedef double type; };
template <> struct promote<double, unsigned char > { typedef double type; };
template <> struct promote<double, short int > { typedef double type; };
template <> struct promote<double, short unsigned int > { typedef double type; };
template <> struct promote<double, int > { typedef double type; };
template <> struct promote<double, unsigned int > { typedef double type; };
template <> struct promote<double, long > { typedef double type; };
template <> struct promote<double, unsigned long > { typedef double type; };
template <> struct promote<double, float > { typedef double type; };
template <> struct promote<double, double > { typedef double type; };
template <> struct promote<double, long double > { typedef long double type; };
template <> struct promote<long double, char > { typedef long double type; };
template <> struct promote<long double, unsigned char > { typedef long double type; };
template <> struct promote<long double, short int > { typedef long double type; };
template <> struct promote<long double, short unsigned int > { typedef long double type; };
template <> struct promote<long double, int > { typedef long double type; };
template <> struct promote<long double, unsigned int > { typedef long double type; };
template <> struct promote<long double, long > { typedef long double type; };
template <> struct promote<long double, unsigned long > { typedef long double type; };
template <> struct promote<long double, float > { typedef long double type; };
template <> struct promote<long double, double > { typedef long double type; };
template <> struct promote<long double, long double > { typedef long double type; };

#ifdef _RHEOLEF_HAVE_FLOAT128
  template <> struct promote<char, float128 > { typedef float128 type; };
  template <> struct promote<unsigned char, float128 > { typedef float128 type; };
  template <> struct promote<short unsigned int, float128 > { typedef float128 type; };
  template <> struct promote<int, float128 > { typedef float128 type; };
  template <> struct promote<unsigned int, float128 > { typedef float128 type; };
  template <> struct promote<long, float128 > { typedef float128 type; };
  template <> struct promote<unsigned long, float128 > { typedef float128 type; };
  template <> struct promote<float, float128 > { typedef float128 type; };
  template <> struct promote<double, float128 > { typedef float128 type; };
  template <> struct promote<float128, char > { typedef float128 type; };
  template <> struct promote<float128, unsigned char > { typedef float128 type; };
  template <> struct promote<float128, short int > { typedef float128 type; };
  template <> struct promote<float128, short unsigned int > { typedef float128 type; };
  template <> struct promote<float128, int > { typedef float128 type; };
  template <> struct promote<float128, unsigned int > { typedef float128 type; };
  template <> struct promote<float128, long > { typedef float128 type; };
  template <> struct promote<float128, unsigned long > { typedef float128 type; };
  template <> struct promote<float128, float > { typedef float128 type; };
  template <> struct promote<float128, double > { typedef float128 type; };
  template <> struct promote<float128, float128 > { typedef float128 type; };
#endif // _RHEOLEF_HAVE_FLOAT128

#ifdef _RHEOLEF_HAVE_QD
  template <> struct promote<char, dd_real > { typedef dd_real type; };
  template <> struct promote<unsigned char, dd_real > { typedef dd_real type; };
  template <> struct promote<short unsigned int, dd_real > { typedef dd_real type; };
  template <> struct promote<int, dd_real > { typedef dd_real type; };
  template <> struct promote<unsigned int, dd_real > { typedef dd_real type; };
  template <> struct promote<long, dd_real > { typedef dd_real type; };
  template <> struct promote<unsigned long, dd_real > { typedef dd_real type; };
  template <> struct promote<float, dd_real > { typedef dd_real type; };
  template <> struct promote<double, dd_real > { typedef dd_real type; };
  template <> struct promote<dd_real, char > { typedef dd_real type; };
  template <> struct promote<dd_real, unsigned char > { typedef dd_real type; };
  template <> struct promote<dd_real, short int > { typedef dd_real type; };
  template <> struct promote<dd_real, short unsigned int > { typedef dd_real type; };
  template <> struct promote<dd_real, int > { typedef dd_real type; };
  template <> struct promote<dd_real, unsigned int > { typedef dd_real type; };
  template <> struct promote<dd_real, long > { typedef dd_real type; };
  template <> struct promote<dd_real, unsigned long > { typedef dd_real type; };
  template <> struct promote<dd_real, float > { typedef dd_real type; };
  template <> struct promote<dd_real, double > { typedef dd_real type; };
  template <> struct promote<dd_real, dd_real > { typedef dd_real type; };

  template <> struct promote<char, qd_real > { typedef qd_real type; };
  template <> struct promote<unsigned char, qd_real > { typedef qd_real type; };
  template <> struct promote<short unsigned int, qd_real > { typedef qd_real type; };
  template <> struct promote<int, qd_real > { typedef qd_real type; };
  template <> struct promote<unsigned int, qd_real > { typedef qd_real type; };
  template <> struct promote<long, qd_real > { typedef qd_real type; };
  template <> struct promote<unsigned long, qd_real > { typedef qd_real type; };
  template <> struct promote<float, qd_real > { typedef qd_real type; };
  template <> struct promote<double, qd_real > { typedef qd_real type; };
  template <> struct promote<qd_real, char > { typedef qd_real type; };
  template <> struct promote<qd_real, unsigned char > { typedef qd_real type; };
  template <> struct promote<qd_real, short int > { typedef qd_real type; };
  template <> struct promote<qd_real, short unsigned int > { typedef qd_real type; };
  template <> struct promote<qd_real, int > { typedef qd_real type; };
  template <> struct promote<qd_real, unsigned int > { typedef qd_real type; };
  template <> struct promote<qd_real, long > { typedef qd_real type; };
  template <> struct promote<qd_real, unsigned long > { typedef qd_real type; };
  template <> struct promote<qd_real, float > { typedef qd_real type; };
  template <> struct promote<qd_real, double > { typedef qd_real type; };
  template <> struct promote<qd_real, qd_real > { typedef qd_real type; };
#endif // _RHEOLEF_HAVE_QD

} // namespace rheolef
#endif /* _RHEOLEF_PROMOTE_H */