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" |
|
35 #include "ov-int32.h" |
4901
|
36 #include "ov-int64.h" |
4953
|
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_S_INT_UNOPS (int64) |
4953
|
54 OCTAVE_SS_INT_CMP_OPS (ss, int64_, int64_) |
|
55 OCTAVE_SS_INT_BOOL_OPS (ss, int64_, int64_) |
|
56 |
|
57 OCTAVE_SM_INT_CMP_OPS (sm, int64_, int64_) |
|
58 OCTAVE_SM_INT_BOOL_OPS (sm, int64_, int64_) |
4901
|
59 |
4953
|
60 OCTAVE_MS_INT_CMP_OPS (ms, int64_, int64_) |
|
61 OCTAVE_MS_INT_BOOL_OPS (ms, int64_, int64_) |
|
62 OCTAVE_MS_INT_ASSIGN_OPS (ms, int64_, int64_, int64_) |
|
63 OCTAVE_MS_INT_ASSIGN_OPS (mx, int64_, , ) |
|
64 OCTAVE_MS_INT_ASSIGN_OPS (mc, int64_, complex_, ) |
4901
|
65 |
4905
|
66 OCTAVE_M_INT_UNOPS (int64) |
|
67 OCTAVE_MM_INT_CMP_OPS (int64, int64) |
|
68 OCTAVE_MM_INT_BOOL_OPS (int64, int64) |
4953
|
69 OCTAVE_MM_INT_ASSIGN_OPS (mm, int64_, int64_, int64_) |
|
70 OCTAVE_MM_INT_ASSIGN_OPS (mmx, int64_, , ) |
|
71 OCTAVE_MM_INT_ASSIGN_OPS (mmc, int64_, complex_, ) |
|
72 |
|
73 OCTAVE_MS_INT_ASSIGN_OPS (mi8, int64_, int8_, int8_) |
|
74 OCTAVE_MS_INT_ASSIGN_OPS (mui8, int64_, uint8_, uint8_) |
|
75 OCTAVE_MS_INT_ASSIGN_OPS (mi16, int64_, int16_, int16_) |
|
76 OCTAVE_MS_INT_ASSIGN_OPS (mui16, int64_, uint16_, uint16_) |
|
77 OCTAVE_MS_INT_ASSIGN_OPS (mi32, int64_, int32_, int32_) |
|
78 OCTAVE_MS_INT_ASSIGN_OPS (mui32, int64_, uint32_, uint32_) |
|
79 OCTAVE_MS_INT_ASSIGN_OPS (mui64, int64_, uint64_, uint64_) |
|
80 |
|
81 OCTAVE_MM_INT_ASSIGN_OPS (mmi8, int64_, int8_, int8_) |
|
82 OCTAVE_MM_INT_ASSIGN_OPS (mmui8, int64_, uint8_, uint8_) |
|
83 OCTAVE_MM_INT_ASSIGN_OPS (mmi16, int64_, int16_, int16_) |
|
84 OCTAVE_MM_INT_ASSIGN_OPS (mmui16, int64_, uint16_, uint16_) |
|
85 OCTAVE_MM_INT_ASSIGN_OPS (mmi32, int64_, int32_, int32_) |
|
86 OCTAVE_MM_INT_ASSIGN_OPS (mmui32, int64_, uint32_, uint32_) |
|
87 OCTAVE_MM_INT_ASSIGN_OPS (mmui64, int64_, uint64_, uint64_) |
4901
|
88 |
|
89 void |
|
90 install_i64_i64_ops (void) |
|
91 { |
4905
|
92 OCTAVE_INSTALL_S_INT_UNOPS (int64); |
4953
|
93 OCTAVE_INSTALL_SS_INT_CMP_OPS (ss, int64_, int64_); |
|
94 OCTAVE_INSTALL_SS_INT_BOOL_OPS (ss, int64_, int64_); |
|
95 |
|
96 OCTAVE_INSTALL_SM_INT_CMP_OPS (sm, int64_, int64_); |
|
97 OCTAVE_INSTALL_SM_INT_BOOL_OPS (sm, int64_, int64_); |
4901
|
98 |
4953
|
99 OCTAVE_INSTALL_MS_INT_CMP_OPS (ms, int64_, int64_); |
|
100 OCTAVE_INSTALL_MS_INT_BOOL_OPS (ms, int64_, int64_); |
|
101 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (ms, int64_, int64_); |
|
102 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mx, int64_, ); |
|
103 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mc, int64_, complex_); |
4901
|
104 |
4905
|
105 OCTAVE_INSTALL_M_INT_UNOPS (int64); |
|
106 OCTAVE_INSTALL_MM_INT_CMP_OPS (int64, int64); |
|
107 OCTAVE_INSTALL_MM_INT_BOOL_OPS (int64, int64); |
4953
|
108 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mm, int64_, int64_); |
|
109 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmx, int64_, ); |
|
110 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmc, int64_, complex_); |
|
111 |
|
112 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi8, int64_, int8_); |
|
113 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui8, int64_, uint8_); |
|
114 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi16, int64_, int16_); |
|
115 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui16, int64_, uint16_); |
|
116 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi32, int64_, int32_); |
|
117 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui32, int64_, uint32_); |
|
118 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui64, int64_, uint64_); |
|
119 |
|
120 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi8, int64_, int8_); |
|
121 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui8, int64_, uint8_); |
|
122 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi16, int64_, int16_); |
|
123 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui16, int64_, uint16_); |
|
124 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi32, int64_, int32_); |
|
125 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui32, int64_, uint32_); |
|
126 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui64, int64_, uint64_); |
4901
|
127 } |
|
128 |
|
129 /* |
|
130 ;;; Local Variables: *** |
|
131 ;;; mode: C++ *** |
|
132 ;;; End: *** |
|
133 */ |