~ubuntu-branches/ubuntu/trusty/rheolef/trusty-proposed

« back to all changes in this revision

Viewing changes to skit/lib/promote.h

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2010-06-12 09:08:59 UTC
  • Revision ID: james.westby@ubuntu.com-20100612090859-8gpm2gc7j3ab43et
Tags: upstream-5.89
ImportĀ upstreamĀ versionĀ 5.89

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _SKIT_PROMOTE_H
 
2
#define _SKIT_PROMOTE_H
 
3
///
 
4
/// This file is part of Rheolef.
 
5
///
 
6
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
 
7
///
 
8
/// Rheolef is free software; you can redistribute it and/or modify
 
9
/// it under the terms of the GNU General Public License as published by
 
10
/// the Free Software Foundation; either version 2 of the License, or
 
11
/// (at your option) any later version.
 
12
///
 
13
/// Rheolef is distributed in the hope that it will be useful,
 
14
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
/// GNU General Public License for more details.
 
17
///
 
18
/// You should have received a copy of the GNU General Public License
 
19
/// along with Rheolef; if not, write to the Free Software
 
20
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
21
/// 
 
22
/// =========================================================================
 
23
// file automatically generated by the command: promote.sh promote.def
 
24
struct promote_not_specialized_for_this_case {};
 
25
template<class T1, class T2>
 
26
struct promote {
 
27
  typedef promote_not_specialized_for_this_case type;
 
28
};
 
29
#define skit_promote(T1,T2) typename promote<T1,T2>::type 
 
30
 
 
31
template <> struct promote<char, char > { typedef int type; };
 
32
template <> struct promote<char, unsigned char > { typedef int type; };
 
33
template <> struct promote<char, short int > { typedef int type; };
 
34
template <> struct promote<char, short unsigned int > { typedef unsigned int type; };
 
35
template <> struct promote<char, int > { typedef int type; };
 
36
template <> struct promote<char, unsigned int > { typedef unsigned int type; };
 
37
template <> struct promote<char, long > { typedef long type; };
 
38
template <> struct promote<char, unsigned long > { typedef unsigned long type; };
 
39
template <> struct promote<char, float > { typedef float type; };
 
40
template <> struct promote<char, double > { typedef double type; };
 
41
template <> struct promote<char, long double > { typedef long double type; };
 
42
template <> struct promote<unsigned char, char > { typedef int type; };
 
43
template <> struct promote<unsigned char, unsigned char > { typedef int type; };
 
44
template <> struct promote<unsigned char, short int > { typedef int type; };
 
45
template <> struct promote<unsigned char, short unsigned int > { typedef unsigned int type; };
 
46
template <> struct promote<unsigned char, int > { typedef int type; };
 
47
template <> struct promote<unsigned char, unsigned int > { typedef unsigned int type; };
 
48
template <> struct promote<unsigned char, long > { typedef long type; };
 
49
template <> struct promote<unsigned char, unsigned long > { typedef unsigned long type; };
 
50
template <> struct promote<unsigned char, float > { typedef float type; };
 
51
template <> struct promote<unsigned char, double > { typedef double type; };
 
52
template <> struct promote<unsigned char, long double > { typedef long double type; };
 
53
template <> struct promote<short int, char > { typedef int type; };
 
54
template <> struct promote<short int, unsigned char > { typedef int type; };
 
55
template <> struct promote<short int, short int > { typedef int type; };
 
56
template <> struct promote<short int, short unsigned int > { typedef unsigned int type; };
 
57
template <> struct promote<short int, int > { typedef int type; };
 
58
template <> struct promote<short int, unsigned int > { typedef unsigned int type; };
 
59
template <> struct promote<short int, long > { typedef long type; };
 
60
template <> struct promote<short int, unsigned long > { typedef unsigned long type; };
 
61
template <> struct promote<short int, float > { typedef float type; };
 
62
template <> struct promote<short int, double > { typedef double type; };
 
63
template <> struct promote<short unsigned int, char > { typedef unsigned int type; };
 
64
template <> struct promote<short unsigned int, unsigned char > { typedef unsigned int type; };
 
65
template <> struct promote<short unsigned int, short int > { typedef unsigned int type; };
 
66
template <> struct promote<short unsigned int, short unsigned int > { typedef unsigned int type; };
 
67
template <> struct promote<short unsigned int, int > { typedef unsigned int type; };
 
68
template <> struct promote<short unsigned int, unsigned int > { typedef unsigned int type; };
 
69
template <> struct promote<short unsigned int, long > { typedef long type; };
 
70
template <> struct promote<short unsigned int, unsigned long > { typedef unsigned long type; };
 
71
template <> struct promote<short unsigned int, float > { typedef float type; };
 
72
template <> struct promote<short unsigned int, double > { typedef double type; };
 
73
template <> struct promote<short unsigned int, long double > { typedef long double type; };
 
74
template <> struct promote<int, char > { typedef int type; };
 
75
template <> struct promote<int, unsigned char > { typedef int type; };
 
76
template <> struct promote<int, short int > { typedef int type; };
 
77
template <> struct promote<int, short unsigned int > { typedef unsigned int type; };
 
78
template <> struct promote<int, int > { typedef int type; };
 
79
template <> struct promote<int, unsigned int > { typedef unsigned int type; };
 
80
template <> struct promote<int, long > { typedef long type; };
 
81
template <> struct promote<int, unsigned long > { typedef unsigned long type; };
 
82
template <> struct promote<int, float > { typedef float type; };
 
83
template <> struct promote<int, double > { typedef double type; };
 
84
template <> struct promote<int, long double > { typedef long double type; };
 
85
template <> struct promote<unsigned int, char > { typedef unsigned int type; };
 
86
template <> struct promote<unsigned int, unsigned char > { typedef unsigned int type; };
 
87
template <> struct promote<unsigned int, short int > { typedef unsigned int type; };
 
88
template <> struct promote<unsigned int, short unsigned int > { typedef unsigned int type; };
 
89
template <> struct promote<unsigned int, int > { typedef unsigned int type; };
 
90
template <> struct promote<unsigned int, unsigned int > { typedef unsigned int type; };
 
91
template <> struct promote<unsigned int, long > { typedef long type; };
 
92
template <> struct promote<unsigned int, unsigned long > { typedef unsigned long type; };
 
93
template <> struct promote<unsigned int, float > { typedef float type; };
 
94
template <> struct promote<unsigned int, double > { typedef double type; };
 
95
template <> struct promote<unsigned int, long double > { typedef long double type; };
 
96
template <> struct promote<long, char > { typedef long type; };
 
97
template <> struct promote<long, unsigned char > { typedef long type; };
 
98
template <> struct promote<long, short int > { typedef long type; };
 
99
template <> struct promote<long, short unsigned int > { typedef long type; };
 
100
template <> struct promote<long, int > { typedef long type; };
 
101
template <> struct promote<long, unsigned int > { typedef long type; };
 
102
template <> struct promote<long, long > { typedef long type; };
 
103
template <> struct promote<long, unsigned long > { typedef unsigned long type; };
 
104
template <> struct promote<long, float > { typedef float type; };
 
105
template <> struct promote<long, double > { typedef double type; };
 
106
template <> struct promote<long, long double > { typedef long double type; };
 
107
template <> struct promote<unsigned long, char > { typedef unsigned long type; };
 
108
template <> struct promote<unsigned long, unsigned char > { typedef unsigned long type; };
 
109
template <> struct promote<unsigned long, short int > { typedef unsigned long type; };
 
110
template <> struct promote<unsigned long, short unsigned int > { typedef unsigned long type; };
 
111
template <> struct promote<unsigned long, int > { typedef unsigned long type; };
 
112
template <> struct promote<unsigned long, unsigned int > { typedef unsigned long type; };
 
113
template <> struct promote<unsigned long, long > { typedef unsigned long type; };
 
114
template <> struct promote<unsigned long, unsigned long > { typedef unsigned long type; };
 
115
template <> struct promote<unsigned long, float > { typedef float type; };
 
116
template <> struct promote<unsigned long, double > { typedef double type; };
 
117
template <> struct promote<unsigned long, long double > { typedef long double type; };
 
118
template <> struct promote<float, char > { typedef float type; };
 
119
template <> struct promote<float, unsigned char > { typedef float type; };
 
120
template <> struct promote<float, short int > { typedef float type; };
 
121
template <> struct promote<float, short unsigned int > { typedef float type; };
 
122
template <> struct promote<float, int > { typedef float type; };
 
123
template <> struct promote<float, unsigned int > { typedef float type; };
 
124
template <> struct promote<float, long > { typedef float type; };
 
125
template <> struct promote<float, unsigned long > { typedef float type; };
 
126
template <> struct promote<float, float > { typedef float type; };
 
127
template <> struct promote<float, double > { typedef double type; };
 
128
template <> struct promote<float, long double > { typedef long double type; };
 
129
template <> struct promote<double, char > { typedef double type; };
 
130
template <> struct promote<double, unsigned char > { typedef double type; };
 
131
template <> struct promote<double, short int > { typedef double type; };
 
132
template <> struct promote<double, short unsigned int > { typedef double type; };
 
133
template <> struct promote<double, int > { typedef double type; };
 
134
template <> struct promote<double, unsigned int > { typedef double type; };
 
135
template <> struct promote<double, long > { typedef double type; };
 
136
template <> struct promote<double, unsigned long > { typedef double type; };
 
137
template <> struct promote<double, float > { typedef double type; };
 
138
template <> struct promote<double, double > { typedef double type; };
 
139
template <> struct promote<double, long double > { typedef long double type; };
 
140
template <> struct promote<long double, char > { typedef long double type; };
 
141
template <> struct promote<long double, unsigned char > { typedef long double type; };
 
142
template <> struct promote<long double, short int > { typedef long double type; };
 
143
template <> struct promote<long double, short unsigned int > { typedef long double type; };
 
144
template <> struct promote<long double, int > { typedef long double type; };
 
145
template <> struct promote<long double, unsigned int > { typedef long double type; };
 
146
template <> struct promote<long double, long > { typedef long double type; };
 
147
template <> struct promote<long double, unsigned long > { typedef long double type; };
 
148
template <> struct promote<long double, float > { typedef long double type; };
 
149
template <> struct promote<long double, double > { typedef long double type; };
 
150
template <> struct promote<long double, long double > { typedef long double type; };
 
151
#endif /* _SKIT_PROMOTE_H */