3
Copyright (C) 2004, 2005, 2007 John W. Eaton
5
This file is part of Octave.
7
Octave is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 3 of the License, or (at your
10
option) any later version.
12
Octave is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17
You should have received a copy of the GNU General Public License
18
along with Octave; see the file COPYING. If not, see
19
<http://www.gnu.org/licenses/>.
35
#include "ov-uint16.h"
36
#include "ov-uint32.h"
37
#include "ov-uint64.h"
40
#include "ov-bool-mat.h"
41
#include "ov-scalar.h"
42
#include "ov-re-mat.h"
43
#include "ov-str-mat.h"
44
#include "ov-typeinfo.h"
48
// Concatentation of mixed integer types:
50
OCTAVE_CONCAT_FN2 (int8, int16)
51
OCTAVE_CONCAT_FN2 (int8, int32)
52
OCTAVE_CONCAT_FN2 (int8, int64)
54
OCTAVE_CONCAT_FN2 (int8, uint8)
55
OCTAVE_CONCAT_FN2 (int8, uint16)
56
OCTAVE_CONCAT_FN2 (int8, uint32)
57
OCTAVE_CONCAT_FN2 (int8, uint64)
59
OCTAVE_CONCAT_FN2 (int16, int8)
60
OCTAVE_CONCAT_FN2 (int16, int32)
61
OCTAVE_CONCAT_FN2 (int16, int64)
63
OCTAVE_CONCAT_FN2 (int16, uint8)
64
OCTAVE_CONCAT_FN2 (int16, uint16)
65
OCTAVE_CONCAT_FN2 (int16, uint32)
66
OCTAVE_CONCAT_FN2 (int16, uint64)
68
OCTAVE_CONCAT_FN2 (int32, int8)
69
OCTAVE_CONCAT_FN2 (int32, int16)
70
OCTAVE_CONCAT_FN2 (int32, int64)
72
OCTAVE_CONCAT_FN2 (int32, uint8)
73
OCTAVE_CONCAT_FN2 (int32, uint16)
74
OCTAVE_CONCAT_FN2 (int32, uint32)
75
OCTAVE_CONCAT_FN2 (int32, uint64)
77
OCTAVE_CONCAT_FN2 (int64, int8)
78
OCTAVE_CONCAT_FN2 (int64, int16)
79
OCTAVE_CONCAT_FN2 (int64, int32)
81
OCTAVE_CONCAT_FN2 (int64, uint8)
82
OCTAVE_CONCAT_FN2 (int64, uint16)
83
OCTAVE_CONCAT_FN2 (int64, uint32)
84
OCTAVE_CONCAT_FN2 (int64, uint64)
86
OCTAVE_CONCAT_FN2 (uint8, int8)
87
OCTAVE_CONCAT_FN2 (uint8, int16)
88
OCTAVE_CONCAT_FN2 (uint8, int32)
89
OCTAVE_CONCAT_FN2 (uint8, int64)
91
OCTAVE_CONCAT_FN2 (uint8, uint16)
92
OCTAVE_CONCAT_FN2 (uint8, uint32)
93
OCTAVE_CONCAT_FN2 (uint8, uint64)
95
OCTAVE_CONCAT_FN2 (uint16, int8)
96
OCTAVE_CONCAT_FN2 (uint16, int16)
97
OCTAVE_CONCAT_FN2 (uint16, int32)
98
OCTAVE_CONCAT_FN2 (uint16, int64)
100
OCTAVE_CONCAT_FN2 (uint16, uint8)
101
OCTAVE_CONCAT_FN2 (uint16, uint32)
102
OCTAVE_CONCAT_FN2 (uint16, uint64)
104
OCTAVE_CONCAT_FN2 (uint32, int8)
105
OCTAVE_CONCAT_FN2 (uint32, int16)
106
OCTAVE_CONCAT_FN2 (uint32, int32)
107
OCTAVE_CONCAT_FN2 (uint32, int64)
109
OCTAVE_CONCAT_FN2 (uint32, uint8)
110
OCTAVE_CONCAT_FN2 (uint32, uint16)
111
OCTAVE_CONCAT_FN2 (uint32, uint64)
113
OCTAVE_CONCAT_FN2 (uint64, int8)
114
OCTAVE_CONCAT_FN2 (uint64, int16)
115
OCTAVE_CONCAT_FN2 (uint64, int32)
116
OCTAVE_CONCAT_FN2 (uint64, int64)
118
OCTAVE_CONCAT_FN2 (uint64, uint8)
119
OCTAVE_CONCAT_FN2 (uint64, uint16)
120
OCTAVE_CONCAT_FN2 (uint64, uint32)
122
OCTAVE_INT_DOUBLE_CONCAT_FN (int8)
123
OCTAVE_INT_DOUBLE_CONCAT_FN (int16)
124
OCTAVE_INT_DOUBLE_CONCAT_FN (int32)
125
OCTAVE_INT_DOUBLE_CONCAT_FN (int64)
127
OCTAVE_INT_DOUBLE_CONCAT_FN (uint8)
128
OCTAVE_INT_DOUBLE_CONCAT_FN (uint16)
129
OCTAVE_INT_DOUBLE_CONCAT_FN (uint32)
130
OCTAVE_INT_DOUBLE_CONCAT_FN (uint64)
132
OCTAVE_DOUBLE_INT_CONCAT_FN (int8)
133
OCTAVE_DOUBLE_INT_CONCAT_FN (int16)
134
OCTAVE_DOUBLE_INT_CONCAT_FN (int32)
135
OCTAVE_DOUBLE_INT_CONCAT_FN (int64)
137
OCTAVE_DOUBLE_INT_CONCAT_FN (uint8)
138
OCTAVE_DOUBLE_INT_CONCAT_FN (uint16)
139
OCTAVE_DOUBLE_INT_CONCAT_FN (uint32)
140
OCTAVE_DOUBLE_INT_CONCAT_FN (uint64)
142
OCTAVE_INT_CHAR_CONCAT_FN (int8)
143
OCTAVE_INT_CHAR_CONCAT_FN (int16)
144
OCTAVE_INT_CHAR_CONCAT_FN (int32)
145
OCTAVE_INT_CHAR_CONCAT_FN (int64)
147
OCTAVE_INT_CHAR_CONCAT_FN (uint8)
148
OCTAVE_INT_CHAR_CONCAT_FN (uint16)
149
OCTAVE_INT_CHAR_CONCAT_FN (uint32)
150
OCTAVE_INT_CHAR_CONCAT_FN (uint64)
152
OCTAVE_CHAR_INT_CONCAT_FN (int8)
153
OCTAVE_CHAR_INT_CONCAT_FN (int16)
154
OCTAVE_CHAR_INT_CONCAT_FN (int32)
155
OCTAVE_CHAR_INT_CONCAT_FN (int64)
157
OCTAVE_CHAR_INT_CONCAT_FN (uint8)
158
OCTAVE_CHAR_INT_CONCAT_FN (uint16)
159
OCTAVE_CHAR_INT_CONCAT_FN (uint32)
160
OCTAVE_CHAR_INT_CONCAT_FN (uint64)
163
install_int_concat_ops (void)
165
OCTAVE_INSTALL_CONCAT_FN2 (int8, int16);
166
OCTAVE_INSTALL_CONCAT_FN2 (int8, int32);
167
OCTAVE_INSTALL_CONCAT_FN2 (int8, int64);
169
OCTAVE_INSTALL_CONCAT_FN2 (int8, uint8);
170
OCTAVE_INSTALL_CONCAT_FN2 (int8, uint16);
171
OCTAVE_INSTALL_CONCAT_FN2 (int8, uint32);
172
OCTAVE_INSTALL_CONCAT_FN2 (int8, uint64);
174
OCTAVE_INSTALL_CONCAT_FN2 (int16, int8);
175
OCTAVE_INSTALL_CONCAT_FN2 (int16, int32);
176
OCTAVE_INSTALL_CONCAT_FN2 (int16, int64);
178
OCTAVE_INSTALL_CONCAT_FN2 (int16, uint8);
179
OCTAVE_INSTALL_CONCAT_FN2 (int16, uint16);
180
OCTAVE_INSTALL_CONCAT_FN2 (int16, uint32);
181
OCTAVE_INSTALL_CONCAT_FN2 (int16, uint64);
183
OCTAVE_INSTALL_CONCAT_FN2 (int32, int8);
184
OCTAVE_INSTALL_CONCAT_FN2 (int32, int16);
185
OCTAVE_INSTALL_CONCAT_FN2 (int32, int64);
187
OCTAVE_INSTALL_CONCAT_FN2 (int32, uint8);
188
OCTAVE_INSTALL_CONCAT_FN2 (int32, uint16);
189
OCTAVE_INSTALL_CONCAT_FN2 (int32, uint32);
190
OCTAVE_INSTALL_CONCAT_FN2 (int32, uint64);
192
OCTAVE_INSTALL_CONCAT_FN2 (int64, int8);
193
OCTAVE_INSTALL_CONCAT_FN2 (int64, int16);
194
OCTAVE_INSTALL_CONCAT_FN2 (int64, int32);
196
OCTAVE_INSTALL_CONCAT_FN2 (int64, uint8);
197
OCTAVE_INSTALL_CONCAT_FN2 (int64, uint16);
198
OCTAVE_INSTALL_CONCAT_FN2 (int64, uint32);
199
OCTAVE_INSTALL_CONCAT_FN2 (int64, uint64);
201
OCTAVE_INSTALL_CONCAT_FN2 (uint8, int8);
202
OCTAVE_INSTALL_CONCAT_FN2 (uint8, int16);
203
OCTAVE_INSTALL_CONCAT_FN2 (uint8, int32);
204
OCTAVE_INSTALL_CONCAT_FN2 (uint8, int64);
206
OCTAVE_INSTALL_CONCAT_FN2 (uint8, uint16);
207
OCTAVE_INSTALL_CONCAT_FN2 (uint8, uint32);
208
OCTAVE_INSTALL_CONCAT_FN2 (uint8, uint64);
210
OCTAVE_INSTALL_CONCAT_FN2 (uint16, int8);
211
OCTAVE_INSTALL_CONCAT_FN2 (uint16, int16);
212
OCTAVE_INSTALL_CONCAT_FN2 (uint16, int32);
213
OCTAVE_INSTALL_CONCAT_FN2 (uint16, int64);
215
OCTAVE_INSTALL_CONCAT_FN2 (uint16, uint8);
216
OCTAVE_INSTALL_CONCAT_FN2 (uint16, uint32);
217
OCTAVE_INSTALL_CONCAT_FN2 (uint16, uint64);
219
OCTAVE_INSTALL_CONCAT_FN2 (uint32, int8);
220
OCTAVE_INSTALL_CONCAT_FN2 (uint32, int16);
221
OCTAVE_INSTALL_CONCAT_FN2 (uint32, int32);
222
OCTAVE_INSTALL_CONCAT_FN2 (uint32, int64);
224
OCTAVE_INSTALL_CONCAT_FN2 (uint32, uint8);
225
OCTAVE_INSTALL_CONCAT_FN2 (uint32, uint16);
226
OCTAVE_INSTALL_CONCAT_FN2 (uint32, uint64);
228
OCTAVE_INSTALL_CONCAT_FN2 (uint64, int8);
229
OCTAVE_INSTALL_CONCAT_FN2 (uint64, int16);
230
OCTAVE_INSTALL_CONCAT_FN2 (uint64, int32);
231
OCTAVE_INSTALL_CONCAT_FN2 (uint64, int64);
233
OCTAVE_INSTALL_CONCAT_FN2 (uint64, uint8);
234
OCTAVE_INSTALL_CONCAT_FN2 (uint64, uint16);
235
OCTAVE_INSTALL_CONCAT_FN2 (uint64, uint32);
237
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN (int8);
238
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN (int16);
239
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN (int32);
240
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN (int64);
242
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN (uint8);
243
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN (uint16);
244
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN (uint32);
245
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN (uint64);
247
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN (int8);
248
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN (int16);
249
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN (int32);
250
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN (int64);
252
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN (uint8);
253
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN (uint16);
254
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN (uint32);
255
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN (uint64);
257
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN (int8);
258
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN (int16);
259
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN (int32);
260
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN (int64);
262
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN (uint8);
263
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN (uint16);
264
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN (uint32);
265
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN (uint64);
267
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN (int8);
268
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN (int16);
269
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN (int32);
270
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN (int64);
272
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN (uint8);
273
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN (uint16);
274
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN (uint32);
275
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN (uint64);
279
;;; Local Variables: ***