4902
|
1 /* |
|
2 |
|
3 Copyright (C) 2004 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
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 2, or (at your option) any |
|
10 later version. |
|
11 |
|
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 |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_inttypes_h) |
|
24 #define octave_inttypes_h 1 |
|
25 |
|
26 #include <limits> |
|
27 |
|
28 #include <iostream> |
|
29 |
|
30 #include "data-conv.h" |
|
31 |
|
32 typedef signed char octave_int8_t; |
|
33 typedef TWO_BYTE_INT octave_int16_t; |
|
34 typedef FOUR_BYTE_INT octave_int32_t; |
|
35 typedef EIGHT_BYTE_INT octave_int64_t; |
|
36 |
|
37 typedef unsigned char octave_uint8_t; |
|
38 typedef unsigned TWO_BYTE_INT octave_uint16_t; |
|
39 typedef unsigned FOUR_BYTE_INT octave_uint32_t; |
|
40 typedef unsigned EIGHT_BYTE_INT octave_uint64_t; |
|
41 |
|
42 template <class T1, class T2> |
|
43 class |
|
44 octave_int_binop_traits |
|
45 { |
|
46 public: |
|
47 // The return type for a T1 by T2 binary operation. |
|
48 typedef T1 TR; |
|
49 }; |
|
50 |
|
51 #define OCTAVE_INT_BINOP_TRAIT(T1, T2, T3) \ |
|
52 template<> \ |
|
53 class octave_int_binop_traits <T1, T2> \ |
|
54 { \ |
|
55 public: \ |
|
56 typedef T3 TR; \ |
|
57 } |
|
58 |
4909
|
59 OCTAVE_INT_BINOP_TRAIT (octave_int8_t, octave_int8_t, octave_int8_t); |
|
60 OCTAVE_INT_BINOP_TRAIT (octave_int8_t, octave_int16_t, octave_int8_t); |
|
61 OCTAVE_INT_BINOP_TRAIT (octave_int8_t, octave_int32_t, octave_int8_t); |
|
62 OCTAVE_INT_BINOP_TRAIT (octave_int8_t, octave_int64_t, octave_int8_t); |
|
63 OCTAVE_INT_BINOP_TRAIT (octave_int8_t, octave_uint8_t, octave_int8_t); |
|
64 OCTAVE_INT_BINOP_TRAIT (octave_int8_t, octave_uint16_t, octave_int8_t); |
|
65 OCTAVE_INT_BINOP_TRAIT (octave_int8_t, octave_uint32_t, octave_int8_t); |
|
66 OCTAVE_INT_BINOP_TRAIT (octave_int8_t, octave_uint64_t, octave_int8_t); |
4902
|
67 |
4909
|
68 OCTAVE_INT_BINOP_TRAIT (octave_int16_t, octave_int8_t, octave_int16_t); |
|
69 OCTAVE_INT_BINOP_TRAIT (octave_int16_t, octave_int16_t, octave_int16_t); |
|
70 OCTAVE_INT_BINOP_TRAIT (octave_int16_t, octave_int32_t, octave_int16_t); |
|
71 OCTAVE_INT_BINOP_TRAIT (octave_int16_t, octave_int64_t, octave_int16_t); |
|
72 OCTAVE_INT_BINOP_TRAIT (octave_int16_t, octave_uint8_t, octave_int16_t); |
|
73 OCTAVE_INT_BINOP_TRAIT (octave_int16_t, octave_uint16_t, octave_int16_t); |
|
74 OCTAVE_INT_BINOP_TRAIT (octave_int16_t, octave_uint32_t, octave_int16_t); |
|
75 OCTAVE_INT_BINOP_TRAIT (octave_int16_t, octave_uint64_t, octave_int16_t); |
4902
|
76 |
4909
|
77 OCTAVE_INT_BINOP_TRAIT (octave_int32_t, octave_int8_t, octave_int32_t); |
|
78 OCTAVE_INT_BINOP_TRAIT (octave_int32_t, octave_int16_t, octave_int32_t); |
|
79 OCTAVE_INT_BINOP_TRAIT (octave_int32_t, octave_int32_t, octave_int32_t); |
|
80 OCTAVE_INT_BINOP_TRAIT (octave_int32_t, octave_int64_t, octave_int32_t); |
|
81 OCTAVE_INT_BINOP_TRAIT (octave_int32_t, octave_uint8_t, octave_int32_t); |
|
82 OCTAVE_INT_BINOP_TRAIT (octave_int32_t, octave_uint16_t, octave_int32_t); |
|
83 OCTAVE_INT_BINOP_TRAIT (octave_int32_t, octave_uint32_t, octave_int32_t); |
|
84 OCTAVE_INT_BINOP_TRAIT (octave_int32_t, octave_uint64_t, octave_int32_t); |
4902
|
85 |
4909
|
86 OCTAVE_INT_BINOP_TRAIT (octave_int64_t, octave_int8_t, octave_int64_t); |
|
87 OCTAVE_INT_BINOP_TRAIT (octave_int64_t, octave_int16_t, octave_int64_t); |
|
88 OCTAVE_INT_BINOP_TRAIT (octave_int64_t, octave_int32_t, octave_int64_t); |
|
89 OCTAVE_INT_BINOP_TRAIT (octave_int64_t, octave_int64_t, octave_int64_t); |
|
90 OCTAVE_INT_BINOP_TRAIT (octave_int64_t, octave_uint8_t, octave_int64_t); |
|
91 OCTAVE_INT_BINOP_TRAIT (octave_int64_t, octave_uint16_t, octave_int64_t); |
|
92 OCTAVE_INT_BINOP_TRAIT (octave_int64_t, octave_uint32_t, octave_int64_t); |
|
93 OCTAVE_INT_BINOP_TRAIT (octave_int64_t, octave_uint64_t, octave_int64_t); |
4902
|
94 |
4909
|
95 OCTAVE_INT_BINOP_TRAIT (octave_uint8_t, octave_int8_t, octave_int8_t); |
|
96 OCTAVE_INT_BINOP_TRAIT (octave_uint8_t, octave_int16_t, octave_int8_t); |
|
97 OCTAVE_INT_BINOP_TRAIT (octave_uint8_t, octave_int32_t, octave_int8_t); |
|
98 OCTAVE_INT_BINOP_TRAIT (octave_uint8_t, octave_int64_t, octave_int8_t); |
|
99 OCTAVE_INT_BINOP_TRAIT (octave_uint8_t, octave_uint8_t, octave_uint8_t); |
|
100 OCTAVE_INT_BINOP_TRAIT (octave_uint8_t, octave_uint16_t, octave_uint8_t); |
|
101 OCTAVE_INT_BINOP_TRAIT (octave_uint8_t, octave_uint32_t, octave_uint8_t); |
|
102 OCTAVE_INT_BINOP_TRAIT (octave_uint8_t, octave_uint64_t, octave_uint8_t); |
4902
|
103 |
4909
|
104 OCTAVE_INT_BINOP_TRAIT (octave_uint16_t, octave_int8_t, octave_int16_t); |
|
105 OCTAVE_INT_BINOP_TRAIT (octave_uint16_t, octave_int16_t, octave_int16_t); |
|
106 OCTAVE_INT_BINOP_TRAIT (octave_uint16_t, octave_int32_t, octave_int16_t); |
|
107 OCTAVE_INT_BINOP_TRAIT (octave_uint16_t, octave_int64_t, octave_int16_t); |
|
108 OCTAVE_INT_BINOP_TRAIT (octave_uint16_t, octave_uint8_t, octave_uint16_t); |
|
109 OCTAVE_INT_BINOP_TRAIT (octave_uint16_t, octave_uint16_t, octave_uint16_t); |
|
110 OCTAVE_INT_BINOP_TRAIT (octave_uint16_t, octave_uint32_t, octave_uint16_t); |
|
111 OCTAVE_INT_BINOP_TRAIT (octave_uint16_t, octave_uint64_t, octave_uint16_t); |
4902
|
112 |
4909
|
113 OCTAVE_INT_BINOP_TRAIT (octave_uint32_t, octave_int8_t, octave_int32_t); |
|
114 OCTAVE_INT_BINOP_TRAIT (octave_uint32_t, octave_int16_t, octave_int32_t); |
|
115 OCTAVE_INT_BINOP_TRAIT (octave_uint32_t, octave_int32_t, octave_int32_t); |
|
116 OCTAVE_INT_BINOP_TRAIT (octave_uint32_t, octave_int64_t, octave_int32_t); |
|
117 OCTAVE_INT_BINOP_TRAIT (octave_uint32_t, octave_uint8_t, octave_uint32_t); |
|
118 OCTAVE_INT_BINOP_TRAIT (octave_uint32_t, octave_uint16_t, octave_uint32_t); |
|
119 OCTAVE_INT_BINOP_TRAIT (octave_uint32_t, octave_uint32_t, octave_uint32_t); |
|
120 OCTAVE_INT_BINOP_TRAIT (octave_uint32_t, octave_uint64_t, octave_uint32_t); |
4902
|
121 |
4909
|
122 OCTAVE_INT_BINOP_TRAIT (octave_uint64_t, octave_int8_t, octave_int64_t); |
|
123 OCTAVE_INT_BINOP_TRAIT (octave_uint64_t, octave_int16_t, octave_int64_t); |
|
124 OCTAVE_INT_BINOP_TRAIT (octave_uint64_t, octave_int32_t, octave_int64_t); |
|
125 OCTAVE_INT_BINOP_TRAIT (octave_uint64_t, octave_int64_t, octave_int64_t); |
|
126 OCTAVE_INT_BINOP_TRAIT (octave_uint64_t, octave_uint8_t, octave_uint64_t); |
|
127 OCTAVE_INT_BINOP_TRAIT (octave_uint64_t, octave_uint16_t, octave_uint64_t); |
|
128 OCTAVE_INT_BINOP_TRAIT (octave_uint64_t, octave_uint32_t, octave_uint64_t); |
|
129 OCTAVE_INT_BINOP_TRAIT (octave_uint64_t, octave_uint64_t, octave_uint64_t); |
4902
|
130 |
|
131 template <class T1, class T2> |
|
132 inline T2 |
|
133 octave_int_fit_to_range (const T1& x, const T2& mn, const T2& mx) |
|
134 { |
|
135 return (x > mx ? mx : (x < mn ? mn : static_cast<T2> (x))); |
|
136 } |
|
137 |
4943
|
138 // If X is unsigned and the new type is signed, then we only have to |
|
139 // check the upper limit, but we should cast the maximum value of the |
|
140 // new type to an unsigned type before performing the comparison. |
|
141 // This should always be OK because the maximum value should always be |
|
142 // positive. |
|
143 |
|
144 #define US_S_FTR(T1, T2, TC) \ |
|
145 template <> \ |
|
146 inline T2 \ |
|
147 octave_int_fit_to_range<T1, T2> (const T1& x, const T2&, const T2& mx) \ |
|
148 { \ |
|
149 return x > static_cast<TC> (mx) ? mx : x; \ |
|
150 } |
|
151 |
|
152 #define US_S_FTR_FCNS(T) \ |
|
153 US_S_FTR(T, char, unsigned char) \ |
|
154 US_S_FTR(T, signed char, unsigned char) \ |
|
155 US_S_FTR(T, short, unsigned short) \ |
|
156 US_S_FTR(T, int, unsigned int) \ |
|
157 US_S_FTR(T, long, unsigned long) \ |
|
158 US_S_FTR(T, long long, unsigned long long) |
|
159 |
|
160 US_S_FTR_FCNS (unsigned char) |
|
161 US_S_FTR_FCNS (unsigned short) |
|
162 US_S_FTR_FCNS (unsigned int) |
|
163 US_S_FTR_FCNS (unsigned long) |
|
164 US_S_FTR_FCNS (unsigned long long) |
|
165 |
|
166 // If X is signed and the new type is unsigned, then we only have to |
|
167 // check the lower limit (which will always be 0 for an unsigned |
|
168 // type). The upper limit will be enforced correctly by converting to |
|
169 // the new type, even if the type of X is wider than the new type. |
|
170 |
|
171 #define S_US_FTR(T1, T2) \ |
|
172 template <> \ |
|
173 inline T2 \ |
|
174 octave_int_fit_to_range<T1, T2> (const T1& x, const T2&, const T2&) \ |
|
175 { \ |
|
176 return x < 0 ? 0 : x; \ |
|
177 } |
|
178 |
|
179 #define S_US_FTR_FCNS(T) \ |
|
180 S_US_FTR(T, unsigned char) \ |
|
181 S_US_FTR(T, unsigned short) \ |
|
182 S_US_FTR(T, unsigned int) \ |
|
183 S_US_FTR(T, unsigned long) \ |
|
184 S_US_FTR(T, unsigned long long) |
|
185 |
|
186 S_US_FTR_FCNS (char) |
|
187 S_US_FTR_FCNS (signed char) |
|
188 S_US_FTR_FCNS (short) |
|
189 S_US_FTR_FCNS (int) |
|
190 S_US_FTR_FCNS (long) |
|
191 S_US_FTR_FCNS (long long) |
|
192 |
4902
|
193 #define OCTAVE_INT_FIT_TO_RANGE(r, T) \ |
4943
|
194 octave_int_fit_to_range (r, \ |
|
195 std::numeric_limits<T>::min (), \ |
|
196 std::numeric_limits<T>::max ()) |
4902
|
197 |
|
198 #define OCTAVE_INT_MIN_VAL2(T1, T2) \ |
|
199 std::numeric_limits<typename octave_int_binop_traits<T1, T2>::TR>::min () |
|
200 |
|
201 #define OCTAVE_INT_MAX_VAL2(T1, T2) \ |
|
202 std::numeric_limits<typename octave_int_binop_traits<T1, T2>::TR>::max () |
|
203 |
|
204 #define OCTAVE_INT_FIT_TO_RANGE2(r, T1, T2) \ |
|
205 octave_int_fit_to_range (r, \ |
|
206 OCTAVE_INT_MIN_VAL2 (T1, T2), \ |
|
207 OCTAVE_INT_MAX_VAL2 (T1, T2)) |
|
208 |
|
209 template <class T> |
|
210 class |
|
211 octave_int |
|
212 { |
|
213 public: |
|
214 |
4943
|
215 typedef T val_type; |
|
216 |
4902
|
217 octave_int (void) : ival () { } |
|
218 |
|
219 template <class U> |
|
220 octave_int (U i) : ival (OCTAVE_INT_FIT_TO_RANGE (i, T)) { } |
|
221 |
|
222 octave_int (bool b) : ival (b) { } |
|
223 |
|
224 template <class U> |
|
225 octave_int (const octave_int<U>& i) |
|
226 : ival (OCTAVE_INT_FIT_TO_RANGE (i.value (), T)) { } |
|
227 |
|
228 octave_int (const octave_int<T>& i) : ival (i.ival) { } |
|
229 |
|
230 octave_int& operator = (const octave_int<T>& i) |
|
231 { |
|
232 ival = i.ival; |
|
233 return *this; |
|
234 } |
|
235 |
|
236 ~octave_int (void) { } |
|
237 |
|
238 T value (void) const { return ival; } |
|
239 |
4949
|
240 const unsigned char * iptr (void) const |
|
241 { return reinterpret_cast<const unsigned char *> (& ival); } |
|
242 |
4902
|
243 bool operator ! (void) const { return ! ival; } |
|
244 |
4906
|
245 octave_int<T> operator + (void) const { return *this; } |
4902
|
246 |
4906
|
247 octave_int<T> operator - (void) const |
4902
|
248 { |
|
249 return std::numeric_limits<T>::is_signed ? -ival : 0; |
|
250 } |
|
251 |
|
252 operator double (void) const { return static_cast<double> (value ()); } |
|
253 |
|
254 octave_int<T>& operator += (const octave_int<T>& x) |
|
255 { |
|
256 double t = static_cast<double> (value ()); |
|
257 double tx = static_cast<double> (x.value ()); |
|
258 ival = OCTAVE_INT_FIT_TO_RANGE (t + tx, T); |
|
259 return *this; |
|
260 } |
|
261 |
|
262 octave_int<T>& operator -= (const octave_int<T>& x) |
|
263 { |
|
264 double t = static_cast<double> (value ()); |
|
265 double tx = static_cast<double> (x.value ()); |
|
266 ival = OCTAVE_INT_FIT_TO_RANGE (t - tx, T); |
|
267 return *this; |
|
268 } |
|
269 |
4952
|
270 octave_int<T>& operator *= (const octave_int<T>& x) |
|
271 { |
|
272 double t = static_cast<double> (value ()); |
|
273 double tx = static_cast<double> (x.value ()); |
|
274 ival = OCTAVE_INT_FIT_TO_RANGE (t * tx, T); |
|
275 return *this; |
|
276 } |
|
277 |
|
278 octave_int<T>& operator /= (const octave_int<T>& x) |
|
279 { |
|
280 double t = static_cast<double> (value ()); |
|
281 double tx = static_cast<double> (x.value ()); |
|
282 ival = OCTAVE_INT_FIT_TO_RANGE (t / tx, T); |
|
283 return *this; |
|
284 } |
|
285 |
|
286 template <class T2> |
|
287 octave_int<T>& operator <<= (const T2& x) |
|
288 { |
|
289 ival = ((ival << x) > std::numeric_limits<T>::max ()) ? 0 : (ival << x); |
|
290 return *this; |
|
291 } |
|
292 |
|
293 template <class T2> |
|
294 octave_int<T>& operator >>= (const T2& x) |
|
295 { |
|
296 ival >>= x; |
|
297 return *this; |
|
298 } |
|
299 |
4906
|
300 octave_int<T> min (void) const { return std::numeric_limits<T>::min (); } |
|
301 octave_int<T> max (void) const { return std::numeric_limits<T>::max (); } |
|
302 |
4919
|
303 static int nbits (void) { return sizeof (T) * CHAR_BIT; } |
4909
|
304 |
4949
|
305 static int byte_size (void) { return sizeof(T); } |
|
306 |
4902
|
307 private: |
|
308 |
|
309 T ival; |
|
310 }; |
|
311 |
|
312 template <class T> |
4952
|
313 T |
|
314 pow (const T& a, const T& b) |
|
315 { |
|
316 T retval; |
|
317 |
|
318 T zero = T (0); |
|
319 T one = T (1); |
|
320 |
|
321 if (b == zero) |
|
322 retval = one; |
|
323 else if (b < zero) |
|
324 retval = zero; |
|
325 else |
|
326 { |
|
327 T a_val = a; |
|
328 T b_val = b; |
|
329 |
|
330 retval = a; |
|
331 |
|
332 b_val -= 1; |
|
333 |
|
334 while (b_val) |
|
335 { |
|
336 if (b_val & one) |
|
337 retval = retval * a_val; |
|
338 |
|
339 b_val = b_val >> 1; |
|
340 |
|
341 if (b_val > zero) |
|
342 a_val = a_val * a_val; |
|
343 } |
|
344 } |
|
345 |
|
346 return retval; |
|
347 } |
|
348 |
|
349 template <class T> |
4902
|
350 std::ostream& |
|
351 operator << (std::ostream& os, const octave_int<T>& ival) |
|
352 { |
|
353 os << ival.value (); |
|
354 return os; |
|
355 } |
|
356 |
|
357 template <class T> |
|
358 std::istream& |
|
359 operator >> (std::istream& is, octave_int<T>& ival) |
|
360 { |
|
361 T tmp = 0; |
|
362 is >> tmp; |
|
363 ival = tmp; |
|
364 return is; |
|
365 } |
|
366 |
|
367 typedef octave_int<octave_int8_t> octave_int8; |
|
368 typedef octave_int<octave_int16_t> octave_int16; |
|
369 typedef octave_int<octave_int32_t> octave_int32; |
|
370 typedef octave_int<octave_int64_t> octave_int64; |
|
371 |
|
372 typedef octave_int<octave_uint8_t> octave_uint8; |
|
373 typedef octave_int<octave_uint16_t> octave_uint16; |
|
374 typedef octave_int<octave_uint32_t> octave_uint32; |
|
375 typedef octave_int<octave_uint64_t> octave_uint64; |
|
376 |
|
377 #define OCTAVE_INT_BIN_OP(OP) \ |
|
378 \ |
|
379 template <class T1, class T2> \ |
|
380 octave_int<typename octave_int_binop_traits<T1, T2>::TR> \ |
|
381 operator OP (const octave_int<T1>& x, const octave_int<T2>& y) \ |
|
382 { \ |
|
383 double tx = static_cast<double> (x.value ()); \ |
|
384 double ty = static_cast<double> (y.value ()); \ |
|
385 double r = tx OP ty; \ |
|
386 return OCTAVE_INT_FIT_TO_RANGE2 (r, T1, T2); \ |
4906
|
387 } |
4902
|
388 |
|
389 OCTAVE_INT_BIN_OP(+) |
|
390 OCTAVE_INT_BIN_OP(-) |
|
391 OCTAVE_INT_BIN_OP(*) |
|
392 OCTAVE_INT_BIN_OP(/) |
|
393 |
4906
|
394 #define OCTAVE_INT_BITCMP_OP(OP) \ |
|
395 \ |
|
396 template <class T> \ |
|
397 octave_int<T> \ |
|
398 operator OP (const octave_int<T>& x, const octave_int<T>& y) \ |
|
399 { \ |
|
400 return x.value () OP y.value (); \ |
|
401 } |
|
402 |
|
403 OCTAVE_INT_BITCMP_OP (&) |
|
404 OCTAVE_INT_BITCMP_OP (|) |
|
405 OCTAVE_INT_BITCMP_OP (^) |
|
406 |
4952
|
407 template <class T1, class T2> |
|
408 octave_int<T1> |
|
409 operator << (const octave_int<T1>& x, const T2& y) |
|
410 { |
|
411 T1 retval = x; |
|
412 return retval <<= y; |
|
413 } |
4906
|
414 |
4952
|
415 template <class T1, class T2> |
|
416 octave_int<T1> |
|
417 operator >> (const octave_int<T1>& x, const T2& y) |
|
418 { |
|
419 T1 retval = x; |
|
420 return retval >>= y; |
|
421 } |
4906
|
422 |
4909
|
423 template <class T> |
|
424 octave_int<T> |
4920
|
425 bitshift (const octave_int<T>& a, int n, |
|
426 const octave_int<T>& mask = std::numeric_limits<T>::max ()) |
4909
|
427 { |
|
428 if (n > 0) |
4952
|
429 return (a << n) & mask; |
4909
|
430 else if (n < 0) |
4952
|
431 return (a >> -n) & mask; |
4909
|
432 else |
|
433 return a; |
|
434 } |
|
435 |
4902
|
436 #define OCTAVE_INT_CMP_OP(OP) \ |
|
437 \ |
|
438 template <class T1, class T2> \ |
|
439 bool \ |
|
440 operator OP (const octave_int<T1>& x, const octave_int<T2>& y) \ |
|
441 { \ |
|
442 return x.value () OP y.value (); \ |
4906
|
443 } |
4902
|
444 |
|
445 OCTAVE_INT_CMP_OP (<) |
|
446 OCTAVE_INT_CMP_OP (<=) |
|
447 OCTAVE_INT_CMP_OP (>=) |
|
448 OCTAVE_INT_CMP_OP (>) |
|
449 OCTAVE_INT_CMP_OP (==) |
|
450 OCTAVE_INT_CMP_OP (!=) |
|
451 |
4915
|
452 #define OCTAVE_INT_CONCAT_FN(TYPE) \ |
|
453 intNDArray< TYPE > \ |
|
454 concat (const intNDArray< TYPE >& ra, const intNDArray< TYPE >& rb, \ |
|
455 const Array<int>& ra_idx) \ |
|
456 { \ |
|
457 intNDArray< TYPE > retval (ra); \ |
|
458 retval.insert (rb, ra_idx); \ |
|
459 return retval; \ |
|
460 } |
|
461 |
|
462 #define OCTAVE_INT_CONCAT_DECL(TYPE) \ |
|
463 intNDArray< TYPE > \ |
|
464 concat (const intNDArray< TYPE >& ra, const intNDArray< TYPE >& rb, \ |
|
465 const Array<int>& ra_idx); |
|
466 |
4902
|
467 #undef OCTAVE_INT_TRAIT |
|
468 #undef OCTAVE_INT_BINOP_TRAIT |
|
469 #undef OCTAVE_INT_MIN_VAL |
|
470 #undef OCTAVE_INT_MAX_VAL |
|
471 #undef OCTAVE_INT_FIT_TO_RANGE |
|
472 #undef OCTAVE_INT_MIN_VAL2 |
|
473 #undef OCTAVE_INT_MAX_VAL2 |
|
474 #undef OCTAVE_INT_FIT_TO_RANGE2 |
|
475 #undef OCTAVE_INT_BIN_OP |
|
476 #undef OCTAVE_INT_CMP_OP |
|
477 |
|
478 #endif |
|
479 |
|
480 /* |
|
481 ;;; Local Variables: *** |
|
482 ;;; mode: C++ *** |
|
483 ;;; End: *** |
|
484 */ |