4901
|
1 /* |
|
2 |
|
3 Copyright (C) 1996, 1997 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 (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION) |
|
24 #pragma implementation |
|
25 #endif |
|
26 |
|
27 #ifdef HAVE_CONFIG_H |
|
28 #include <config.h> |
|
29 #endif |
|
30 |
|
31 #include "gripes.h" |
|
32 #include "oct-obj.h" |
|
33 #include "ov.h" |
4953
|
34 #include "ov-int16.h" |
4901
|
35 #include "ov-int32.h" |
4953
|
36 #include "ov-int64.h" |
|
37 #include "ov-int8.h" |
|
38 #include "ov-uint16.h" |
|
39 #include "ov-uint32.h" |
|
40 #include "ov-uint64.h" |
|
41 #include "ov-uint8.h" |
|
42 #include "ov-scalar.h" |
|
43 #include "ov-complex.h" |
|
44 #include "ov-re-mat.h" |
|
45 #include "ov-cx-mat.h" |
4901
|
46 #include "ov-typeinfo.h" |
|
47 #include "ops.h" |
|
48 #include "xdiv.h" |
|
49 #include "xpow.h" |
|
50 |
4905
|
51 #include "op-int.h" |
4901
|
52 |
4905
|
53 OCTAVE_INT_OPS (int32) |
4901
|
54 |
4953
|
55 OCTAVE_MS_INT_ASSIGN_OPS (mi8, int32_, int8_, int8_) |
|
56 OCTAVE_MS_INT_ASSIGN_OPS (mui8, int32_, uint8_, uint8_) |
|
57 OCTAVE_MS_INT_ASSIGN_OPS (mi16, int32_, int16_, int16_) |
|
58 OCTAVE_MS_INT_ASSIGN_OPS (mui16, int32_, uint16_, uint16_) |
|
59 OCTAVE_MS_INT_ASSIGN_OPS (mui32, int32_, uint32_, uint32_) |
|
60 OCTAVE_MS_INT_ASSIGN_OPS (mi64, int32_, int64_, int64_) |
|
61 OCTAVE_MS_INT_ASSIGN_OPS (mui64, int32_, uint64_, uint64_) |
|
62 |
|
63 OCTAVE_MM_INT_ASSIGN_OPS (mmi8, int32_, int8_, int8_) |
|
64 OCTAVE_MM_INT_ASSIGN_OPS (mmui8, int32_, uint8_, uint8_) |
|
65 OCTAVE_MM_INT_ASSIGN_OPS (mmi16, int32_, int16_, int16_) |
|
66 OCTAVE_MM_INT_ASSIGN_OPS (mmui16, int32_, uint16_, uint16_) |
|
67 OCTAVE_MM_INT_ASSIGN_OPS (mmui32, int32_, uint32_, uint32_) |
|
68 OCTAVE_MM_INT_ASSIGN_OPS (mmi64, int32_, int64_, int64_) |
|
69 OCTAVE_MM_INT_ASSIGN_OPS (mmui64, int32_, uint64_, uint64_) |
|
70 |
4901
|
71 void |
|
72 install_i32_i32_ops (void) |
|
73 { |
4905
|
74 OCTAVE_INSTALL_INT_OPS (int32); |
4953
|
75 |
|
76 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi8, int32_, int8_); |
|
77 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui8, int32_, uint8_); |
|
78 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi16, int32_, int16_); |
|
79 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui16, int32_, uint16_); |
|
80 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui32, int32_, uint32_); |
|
81 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi64, int32_, int64_); |
|
82 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui64, int32_, uint64_); |
|
83 |
|
84 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi8, int32_, int8_); |
|
85 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui8, int32_, uint8_); |
|
86 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi16, int32_, int16_); |
|
87 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui16, int32_, uint16_); |
|
88 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui32, int32_, uint32_); |
|
89 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi64, int32_, int64_); |
|
90 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui64, int32_, uint64_); |
4963
|
91 |
|
92 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int32, int8); |
|
93 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int32, uint8); |
|
94 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int32, int16); |
|
95 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int32, uint16); |
|
96 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int32, uint32); |
|
97 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int32, int64); |
|
98 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int32, uint64); |
4901
|
99 } |
|
100 |
|
101 /* |
|
102 ;;; Local Variables: *** |
|
103 ;;; mode: C++ *** |
|
104 ;;; End: *** |
|
105 */ |