4901
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1996, 1997, 2004, 2005, 2007 John W. Eaton |
4901
|
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 |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
4901
|
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 |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
4901
|
20 |
|
21 */ |
|
22 |
|
23 #ifdef HAVE_CONFIG_H |
|
24 #include <config.h> |
|
25 #endif |
|
26 |
4964
|
27 #include "mx-ui16nda-i8.h" |
|
28 #include "mx-ui16nda-ui8.h" |
|
29 #include "mx-ui16nda-i16.h" |
|
30 #include "mx-ui16nda-i32.h" |
|
31 #include "mx-ui16nda-ui32.h" |
|
32 #include "mx-ui16nda-i64.h" |
|
33 #include "mx-ui16nda-ui64.h" |
|
34 |
|
35 #include "mx-ui16nda-i8nda.h" |
|
36 #include "mx-ui16nda-ui8nda.h" |
|
37 #include "mx-ui16nda-i16nda.h" |
|
38 #include "mx-ui16nda-i32nda.h" |
|
39 #include "mx-ui16nda-ui32nda.h" |
|
40 #include "mx-ui16nda-i64nda.h" |
|
41 #include "mx-ui16nda-ui64nda.h" |
|
42 |
|
43 #include "mx-ui16-i8nda.h" |
|
44 #include "mx-ui16-ui8nda.h" |
|
45 #include "mx-ui16-i16nda.h" |
|
46 #include "mx-ui16-i32nda.h" |
|
47 #include "mx-ui16-ui32nda.h" |
|
48 #include "mx-ui16-i64nda.h" |
|
49 #include "mx-ui16-ui64nda.h" |
|
50 |
|
51 #include "mx-ui16nda-s.h" |
|
52 #include "mx-s-ui16nda.h" |
|
53 |
|
54 #include "mx-ui16nda-nda.h" |
|
55 #include "mx-nda-ui16nda.h" |
|
56 |
|
57 #include "mx-ui16-nda.h" |
|
58 #include "mx-nda-ui16.h" |
|
59 |
4901
|
60 #include "gripes.h" |
|
61 #include "oct-obj.h" |
|
62 #include "ov.h" |
4953
|
63 #include "ov-int16.h" |
|
64 #include "ov-int32.h" |
|
65 #include "ov-int64.h" |
|
66 #include "ov-int8.h" |
4901
|
67 #include "ov-uint16.h" |
4953
|
68 #include "ov-uint32.h" |
|
69 #include "ov-uint64.h" |
|
70 #include "ov-uint8.h" |
|
71 #include "ov-scalar.h" |
|
72 #include "ov-complex.h" |
|
73 #include "ov-re-mat.h" |
|
74 #include "ov-cx-mat.h" |
4901
|
75 #include "ov-typeinfo.h" |
|
76 #include "ops.h" |
|
77 #include "xdiv.h" |
|
78 #include "xpow.h" |
|
79 |
4905
|
80 #include "op-int.h" |
4901
|
81 |
4905
|
82 OCTAVE_INT_OPS (uint16) |
4901
|
83 |
4953
|
84 OCTAVE_MS_INT_ASSIGN_OPS (mi8, uint16_, int8_, int8_) |
|
85 OCTAVE_MS_INT_ASSIGN_OPS (mui8, uint16_, uint8_, uint8_) |
|
86 OCTAVE_MS_INT_ASSIGN_OPS (mi16, uint16_, int16_, int16_) |
|
87 OCTAVE_MS_INT_ASSIGN_OPS (mi32, uint16_, int32_, int32_) |
|
88 OCTAVE_MS_INT_ASSIGN_OPS (mui32, uint16_, uint32_, uint32_) |
|
89 OCTAVE_MS_INT_ASSIGN_OPS (mi64, uint16_, int64_, int64_) |
|
90 OCTAVE_MS_INT_ASSIGN_OPS (mui64, uint16_, uint64_, uint64_) |
|
91 |
|
92 OCTAVE_MM_INT_ASSIGN_OPS (mmi8, uint16_, int8_, int8_) |
|
93 OCTAVE_MM_INT_ASSIGN_OPS (mmui8, uint16_, uint8_, uint8_) |
|
94 OCTAVE_MM_INT_ASSIGN_OPS (mmi16, uint16_, int16_, int16_) |
|
95 OCTAVE_MM_INT_ASSIGN_OPS (mmi32, uint16_, int32_, int32_) |
|
96 OCTAVE_MM_INT_ASSIGN_OPS (mmui32, uint16_, uint32_, uint32_) |
|
97 OCTAVE_MM_INT_ASSIGN_OPS (mmi64, uint16_, int64_, int64_) |
|
98 OCTAVE_MM_INT_ASSIGN_OPS (mmui64, uint16_, uint64_, uint64_) |
|
99 |
4964
|
100 OCTAVE_MIXED_INT_CMP_OPS (uint16, int8) |
|
101 OCTAVE_MIXED_INT_CMP_OPS (uint16, uint8) |
|
102 OCTAVE_MIXED_INT_CMP_OPS (uint16, int16) |
|
103 OCTAVE_MIXED_INT_CMP_OPS (uint16, int32) |
|
104 OCTAVE_MIXED_INT_CMP_OPS (uint16, uint32) |
|
105 OCTAVE_MIXED_INT_CMP_OPS (uint16, int64) |
|
106 OCTAVE_MIXED_INT_CMP_OPS (uint16, uint64) |
|
107 |
4901
|
108 void |
|
109 install_ui16_ui16_ops (void) |
|
110 { |
4905
|
111 OCTAVE_INSTALL_INT_OPS (uint16); |
4953
|
112 |
|
113 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi8, uint16_, int8_); |
|
114 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui8, uint16_, uint8_); |
|
115 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi16, uint16_, int16_); |
|
116 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi32, uint16_, int32_); |
|
117 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui32, uint16_, uint32_); |
|
118 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi64, uint16_, int64_); |
|
119 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui64, uint16_, uint64_); |
|
120 |
|
121 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi8, uint16_, int8_); |
|
122 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui8, uint16_, uint8_); |
|
123 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi16, uint16_, int16_); |
|
124 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi32, uint16_, int32_); |
|
125 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui32, uint16_, uint32_); |
|
126 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi64, uint16_, int64_); |
|
127 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui64, uint16_, uint64_); |
4963
|
128 |
|
129 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (uint16, int8); |
|
130 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (uint16, uint8); |
|
131 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (uint16, int16); |
|
132 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (uint16, int32); |
|
133 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (uint16, uint32); |
|
134 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (uint16, int64); |
|
135 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (uint16, uint64); |
4964
|
136 |
|
137 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (uint16, int8); |
|
138 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (uint16, uint8); |
|
139 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (uint16, int16); |
|
140 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (uint16, int32); |
|
141 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (uint16, uint32); |
|
142 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (uint16, int64); |
|
143 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (uint16, uint64); |
4901
|
144 } |
|
145 |
|
146 /* |
|
147 ;;; Local Variables: *** |
|
148 ;;; mode: C++ *** |
|
149 ;;; End: *** |
|
150 */ |