~ubuntu-branches/debian/lenny/octave3.0/lenny

« back to all changes in this revision

Viewing changes to src/OPERATORS/op-i64-i64.cc

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2007-12-23 16:04:15 UTC
  • Revision ID: james.westby@ubuntu.com-20071223160415-n4gk468dihy22e9v
Tags: upstream-3.0.0
ImportĀ upstreamĀ versionĀ 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 
 
3
Copyright (C) 1996, 1997, 2004, 2005, 2007 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 3 of the License, or (at your
 
10
option) any 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, see
 
19
<http://www.gnu.org/licenses/>.
 
20
 
 
21
*/
 
22
 
 
23
#ifdef HAVE_CONFIG_H
 
24
#include <config.h>
 
25
#endif
 
26
 
 
27
#include "mx-i64nda-i8.h"
 
28
#include "mx-i64nda-ui8.h"
 
29
#include "mx-i64nda-i16.h"
 
30
#include "mx-i64nda-ui16.h"
 
31
#include "mx-i64nda-i32.h"
 
32
#include "mx-i64nda-ui32.h"
 
33
#include "mx-i64nda-ui64.h"
 
34
 
 
35
#include "mx-i64nda-i8nda.h"
 
36
#include "mx-i64nda-ui8nda.h"
 
37
#include "mx-i64nda-i16nda.h"
 
38
#include "mx-i64nda-ui16nda.h"
 
39
#include "mx-i64nda-i32nda.h"
 
40
#include "mx-i64nda-ui32nda.h"
 
41
#include "mx-i64nda-ui64nda.h"
 
42
 
 
43
#include "mx-i64-i8nda.h"
 
44
#include "mx-i64-ui8nda.h"
 
45
#include "mx-i64-i16nda.h"
 
46
#include "mx-i64-ui16nda.h"
 
47
#include "mx-i64-i32nda.h"
 
48
#include "mx-i64-ui32nda.h"
 
49
#include "mx-i64-ui64nda.h"
 
50
 
 
51
#include "mx-i64nda-s.h"
 
52
#include "mx-s-i64nda.h"
 
53
 
 
54
#include "mx-i64nda-nda.h"
 
55
#include "mx-nda-i64nda.h"
 
56
 
 
57
#include "mx-i64-nda.h"
 
58
#include "mx-nda-i64.h"
 
59
 
 
60
#include "gripes.h"
 
61
#include "oct-obj.h"
 
62
#include "ov.h"
 
63
#include "ov-int16.h"
 
64
#include "ov-int32.h"
 
65
#include "ov-int64.h"
 
66
#include "ov-int8.h"
 
67
#include "ov-uint16.h"
 
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"
 
75
#include "ov-typeinfo.h"
 
76
#include "ops.h"
 
77
#include "xdiv.h"
 
78
#include "xpow.h"
 
79
 
 
80
#include "op-int.h"
 
81
 
 
82
OCTAVE_S_INT_UNOPS (int64)
 
83
OCTAVE_SS_INT_CMP_OPS (ss, int64_, int64_)
 
84
OCTAVE_SS_INT_CMP_OPS (sx, int64_, )
 
85
OCTAVE_SS_INT_CMP_OPS (xs, , int64_)
 
86
OCTAVE_SS_INT_BOOL_OPS (ss, int64_, int64_, octave_int64 (0), octave_int64 (0))
 
87
OCTAVE_SS_INT_BOOL_OPS (sx, int64_, , octave_int64 (0), 0)
 
88
OCTAVE_SS_INT_BOOL_OPS (xs, , int64_, 0, octave_int64 (0))
 
89
 
 
90
OCTAVE_SM_INT_CMP_OPS (sm, int64_, int64_)
 
91
OCTAVE_SM_INT_CMP_OPS (xm, , int64_)
 
92
OCTAVE_SM_INT_CMP_OPS (smx, int64_, )
 
93
OCTAVE_SM_INT_BOOL_OPS (sm, int64_, int64_)
 
94
OCTAVE_SM_INT_BOOL_OPS (xm, , int64_)
 
95
OCTAVE_SM_INT_BOOL_OPS (smx, int64_, )
 
96
 
 
97
OCTAVE_MS_INT_CMP_OPS (ms, int64_, int64_)
 
98
OCTAVE_MS_INT_CMP_OPS (mx, int64_, )
 
99
OCTAVE_MS_INT_CMP_OPS (mxs, , int64_)
 
100
OCTAVE_MS_INT_BOOL_OPS (ms, int64_, int64_)
 
101
OCTAVE_MS_INT_BOOL_OPS (mx, int64_, )
 
102
OCTAVE_MS_INT_BOOL_OPS (mxs, , int64_)
 
103
OCTAVE_MS_INT_ASSIGN_OPS (ms, int64_, int64_, int64_)
 
104
OCTAVE_MS_INT_ASSIGN_OPS (mx, int64_, , )
 
105
OCTAVE_MS_INT_ASSIGN_OPS (mc, int64_, complex_, )
 
106
 
 
107
OCTAVE_M_INT_UNOPS (int64)
 
108
OCTAVE_MM_INT_CMP_OPS (mm, int64_, int64_)
 
109
OCTAVE_MM_INT_CMP_OPS (mmx, int64_, )
 
110
OCTAVE_MM_INT_CMP_OPS (mxm, , int64_)
 
111
OCTAVE_MM_INT_BOOL_OPS (mm, int64_, int64_)
 
112
OCTAVE_MM_INT_BOOL_OPS (mmx, int64_, )
 
113
OCTAVE_MM_INT_BOOL_OPS (mxm, , int64_)
 
114
OCTAVE_MM_INT_ASSIGN_OPS (mm, int64_, int64_, int64_)
 
115
OCTAVE_MM_INT_ASSIGN_OPS (mmx, int64_, , )
 
116
OCTAVE_MM_INT_ASSIGN_OPS (mmc, int64_, complex_, )
 
117
 
 
118
OCTAVE_MS_INT_ASSIGN_OPS (mi8, int64_, int8_, int8_)
 
119
OCTAVE_MS_INT_ASSIGN_OPS (mui8, int64_, uint8_, uint8_)
 
120
OCTAVE_MS_INT_ASSIGN_OPS (mi16, int64_, int16_, int16_)
 
121
OCTAVE_MS_INT_ASSIGN_OPS (mui16, int64_, uint16_, uint16_)
 
122
OCTAVE_MS_INT_ASSIGN_OPS (mi32, int64_, int32_, int32_)
 
123
OCTAVE_MS_INT_ASSIGN_OPS (mui32, int64_, uint32_, uint32_)
 
124
OCTAVE_MS_INT_ASSIGN_OPS (mui64, int64_, uint64_, uint64_)
 
125
 
 
126
OCTAVE_MM_INT_ASSIGN_OPS (mmi8, int64_, int8_, int8_)
 
127
OCTAVE_MM_INT_ASSIGN_OPS (mmui8, int64_, uint8_, uint8_)
 
128
OCTAVE_MM_INT_ASSIGN_OPS (mmi16, int64_, int16_, int16_)
 
129
OCTAVE_MM_INT_ASSIGN_OPS (mmui16, int64_, uint16_, uint16_)
 
130
OCTAVE_MM_INT_ASSIGN_OPS (mmi32, int64_, int32_, int32_)
 
131
OCTAVE_MM_INT_ASSIGN_OPS (mmui32, int64_, uint32_, uint32_)
 
132
OCTAVE_MM_INT_ASSIGN_OPS (mmui64, int64_, uint64_, uint64_)
 
133
 
 
134
OCTAVE_MIXED_INT_CMP_OPS (int64, int8)
 
135
OCTAVE_MIXED_INT_CMP_OPS (int64, uint8)
 
136
OCTAVE_MIXED_INT_CMP_OPS (int64, int16)
 
137
OCTAVE_MIXED_INT_CMP_OPS (int64, uint16)
 
138
OCTAVE_MIXED_INT_CMP_OPS (int64, int32)
 
139
OCTAVE_MIXED_INT_CMP_OPS (int64, uint32)
 
140
OCTAVE_MIXED_INT_CMP_OPS (int64, uint64)
 
141
 
 
142
OCTAVE_CONCAT_FN (int64);
 
143
 
 
144
void
 
145
install_i64_i64_ops (void)
 
146
{
 
147
  OCTAVE_INSTALL_S_INT_UNOPS (int64);
 
148
  OCTAVE_INSTALL_SS_INT_CMP_OPS (ss, int64_, int64_);
 
149
  OCTAVE_INSTALL_SS_INT_CMP_OPS (sx, int64_, );
 
150
  OCTAVE_INSTALL_SS_INT_CMP_OPS (xs, , int64_);
 
151
  OCTAVE_INSTALL_SS_INT_BOOL_OPS (ss, int64_, int64_);
 
152
  OCTAVE_INSTALL_SS_INT_BOOL_OPS (sx, int64_, );
 
153
  OCTAVE_INSTALL_SS_INT_BOOL_OPS (xs, , int64_);
 
154
 
 
155
  OCTAVE_INSTALL_SM_INT_CMP_OPS (sm, int64_, int64_);
 
156
  OCTAVE_INSTALL_SM_INT_CMP_OPS (xm, , int64_);
 
157
  OCTAVE_INSTALL_SM_INT_CMP_OPS (smx, int64_, );
 
158
  OCTAVE_INSTALL_SM_INT_BOOL_OPS (sm, int64_, int64_);
 
159
  OCTAVE_INSTALL_SM_INT_BOOL_OPS (xm, , int64_);
 
160
  OCTAVE_INSTALL_SM_INT_BOOL_OPS (smx, int64_, );
 
161
 
 
162
  OCTAVE_INSTALL_MS_INT_CMP_OPS (ms, int64_, int64_);
 
163
  OCTAVE_INSTALL_MS_INT_CMP_OPS (mx, int64_, );
 
164
  OCTAVE_INSTALL_MS_INT_CMP_OPS (mxs, , int64_);
 
165
  OCTAVE_INSTALL_MS_INT_BOOL_OPS (ms, int64_, int64_);
 
166
  OCTAVE_INSTALL_MS_INT_BOOL_OPS (mx, int64_, );
 
167
  OCTAVE_INSTALL_MS_INT_BOOL_OPS (mxs, , int64_);
 
168
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (ms, int64_, int64_);
 
169
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mx, int64_, );
 
170
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mc, int64_, complex_);
 
171
 
 
172
  OCTAVE_INSTALL_M_INT_UNOPS (int64);
 
173
  OCTAVE_INSTALL_MM_INT_CMP_OPS (mm, int64_, int64_);
 
174
  OCTAVE_INSTALL_MM_INT_CMP_OPS (mmx, int64_, );
 
175
  OCTAVE_INSTALL_MM_INT_CMP_OPS (mxm, , int64_);
 
176
  OCTAVE_INSTALL_MM_INT_BOOL_OPS (mm, int64_, int64_);
 
177
  OCTAVE_INSTALL_MM_INT_BOOL_OPS (mmx, int64_, );
 
178
  OCTAVE_INSTALL_MM_INT_BOOL_OPS (mxm, , int64_);
 
179
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mm, int64_, int64_);
 
180
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmx, int64_, );
 
181
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmc, int64_, complex_);
 
182
 
 
183
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi8, int64_, int8_);
 
184
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui8, int64_, uint8_);
 
185
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi16, int64_, int16_);
 
186
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui16, int64_, uint16_);
 
187
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi32, int64_, int32_);
 
188
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui32, int64_, uint32_);
 
189
  OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui64, int64_, uint64_);
 
190
 
 
191
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi8, int64_, int8_);
 
192
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui8, int64_, uint8_);
 
193
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi16, int64_, int16_);
 
194
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui16, int64_, uint16_);
 
195
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi32, int64_, int32_);
 
196
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui32, int64_, uint32_);
 
197
  OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui64, int64_, uint64_);
 
198
 
 
199
  OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, int8);
 
200
  OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, uint8);
 
201
  OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, int16);
 
202
  OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, uint16);
 
203
  OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, int32);
 
204
  OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, uint32);
 
205
  OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, uint64);
 
206
 
 
207
  OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, int8);
 
208
  OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, uint8);
 
209
  OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, int16);
 
210
  OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, uint16);
 
211
  OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, int32);
 
212
  OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, uint32);
 
213
  OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, uint64);
 
214
 
 
215
  OCTAVE_INSTALL_CONCAT_FN (int64);
 
216
}
 
217
 
 
218
/*
 
219
;;; Local Variables: ***
 
220
;;; mode: C++ ***
 
221
;;; End: ***
 
222
*/