Mercurial > octave
annotate libinterp/operators/op-i64-i64.cc @ 22323:bac0d6f07a3e
maint: Update copyright notices for 2016.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 17 Aug 2016 01:05:19 -0400 |
parents | aba2e6293dd8 |
children | 34ce5be04942 |
rev | line source |
---|---|
4901 | 1 /* |
2 | |
22323
bac0d6f07a3e
maint: Update copyright notices for 2016.
John W. Eaton <jwe@octave.org>
parents:
21724
diff
changeset
|
3 Copyright (C) 1996-2016 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 | |
21724
aba2e6293dd8
use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents:
21301
diff
changeset
|
23 #if defined (HAVE_CONFIG_H) |
21301
40de9f8f23a6
Use '#include "config.h"' rather than <config.h>.
Rik <rik@octave.org>
parents:
21200
diff
changeset
|
24 # include "config.h" |
4901 | 25 #endif |
26 | |
4964 | 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 | |
19269
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
60 #include "mx-i64nda-fs.h" |
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
61 #include "mx-fs-i64nda.h" |
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
62 |
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
63 #include "mx-i64nda-fnda.h" |
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
64 #include "mx-fnda-i64nda.h" |
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
65 |
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
66 #include "mx-i64-fnda.h" |
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
67 #include "mx-fnda-i64.h" |
65554f5847ac
don't include oct-locbuf.h in header files unnecessarily
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
68 |
21100
e39e05d90788
Switch gripe_XXX to either err_XXX or warn_XXX naming scheme.
Rik <rik@octave.org>
parents:
20940
diff
changeset
|
69 #include "errwarn.h" |
20940
48b2ad5ee801
maint: Rename oct-obj.[cc|h] to ovl.[cc|h] for clarity.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
70 #include "ovl.h" |
4901 | 71 #include "ov.h" |
4953 | 72 #include "ov-int16.h" |
73 #include "ov-int32.h" | |
4901 | 74 #include "ov-int64.h" |
4953 | 75 #include "ov-int8.h" |
76 #include "ov-uint16.h" | |
77 #include "ov-uint32.h" | |
78 #include "ov-uint64.h" | |
79 #include "ov-uint8.h" | |
80 #include "ov-scalar.h" | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
81 #include "ov-float.h" |
4953 | 82 #include "ov-complex.h" |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
83 #include "ov-flt-complex.h" |
4953 | 84 #include "ov-re-mat.h" |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
85 #include "ov-flt-re-mat.h" |
4953 | 86 #include "ov-cx-mat.h" |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
87 #include "ov-flt-cx-mat.h" |
4901 | 88 #include "ov-typeinfo.h" |
8150
283989f2da9b
make null assignment matlab compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
89 #include "ov-null-mat.h" |
4901 | 90 #include "ops.h" |
91 #include "xdiv.h" | |
92 #include "xpow.h" | |
93 | |
4905 | 94 #include "op-int.h" |
4901 | 95 |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8150
diff
changeset
|
96 OCTAVE_INT_OPS (int64) |
4953 | 97 |
98 OCTAVE_MS_INT_ASSIGN_OPS (mi8, int64_, int8_, int8_) | |
99 OCTAVE_MS_INT_ASSIGN_OPS (mui8, int64_, uint8_, uint8_) | |
100 OCTAVE_MS_INT_ASSIGN_OPS (mi16, int64_, int16_, int16_) | |
101 OCTAVE_MS_INT_ASSIGN_OPS (mui16, int64_, uint16_, uint16_) | |
102 OCTAVE_MS_INT_ASSIGN_OPS (mi32, int64_, int32_, int32_) | |
103 OCTAVE_MS_INT_ASSIGN_OPS (mui32, int64_, uint32_, uint32_) | |
104 OCTAVE_MS_INT_ASSIGN_OPS (mui64, int64_, uint64_, uint64_) | |
105 | |
106 OCTAVE_MM_INT_ASSIGN_OPS (mmi8, int64_, int8_, int8_) | |
107 OCTAVE_MM_INT_ASSIGN_OPS (mmui8, int64_, uint8_, uint8_) | |
108 OCTAVE_MM_INT_ASSIGN_OPS (mmi16, int64_, int16_, int16_) | |
109 OCTAVE_MM_INT_ASSIGN_OPS (mmui16, int64_, uint16_, uint16_) | |
110 OCTAVE_MM_INT_ASSIGN_OPS (mmi32, int64_, int32_, int32_) | |
111 OCTAVE_MM_INT_ASSIGN_OPS (mmui32, int64_, uint32_, uint32_) | |
112 OCTAVE_MM_INT_ASSIGN_OPS (mmui64, int64_, uint64_, uint64_) | |
4901 | 113 |
4964 | 114 OCTAVE_MIXED_INT_CMP_OPS (int64, int8) |
115 OCTAVE_MIXED_INT_CMP_OPS (int64, uint8) | |
116 OCTAVE_MIXED_INT_CMP_OPS (int64, int16) | |
117 OCTAVE_MIXED_INT_CMP_OPS (int64, uint16) | |
118 OCTAVE_MIXED_INT_CMP_OPS (int64, int32) | |
119 OCTAVE_MIXED_INT_CMP_OPS (int64, uint32) | |
120 OCTAVE_MIXED_INT_CMP_OPS (int64, uint64) | |
121 | |
4901 | 122 void |
123 install_i64_i64_ops (void) | |
124 { | |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8150
diff
changeset
|
125 OCTAVE_INSTALL_INT_OPS (int64); |
4953 | 126 |
127 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi8, int64_, int8_); | |
128 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui8, int64_, uint8_); | |
129 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi16, int64_, int16_); | |
130 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui16, int64_, uint16_); | |
131 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mi32, int64_, int32_); | |
132 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui32, int64_, uint32_); | |
133 OCTAVE_INSTALL_MS_INT_ASSIGN_OPS (mui64, int64_, uint64_); | |
134 | |
135 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi8, int64_, int8_); | |
136 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui8, int64_, uint8_); | |
137 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi16, int64_, int16_); | |
138 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui16, int64_, uint16_); | |
139 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmi32, int64_, int32_); | |
140 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui32, int64_, uint32_); | |
141 OCTAVE_INSTALL_MM_INT_ASSIGN_OPS (mmui64, int64_, uint64_); | |
4963 | 142 |
143 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, int8); | |
144 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, uint8); | |
145 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, int16); | |
146 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, uint16); | |
147 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, int32); | |
148 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, uint32); | |
149 OCTAVE_INSTALL_SM_INT_ASSIGNCONV (int64, uint64); | |
4964 | 150 |
151 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, int8); | |
152 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, uint8); | |
153 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, int16); | |
154 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, uint16); | |
155 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, int32); | |
156 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, uint32); | |
157 OCTAVE_INSTALL_MIXED_INT_CMP_OPS (int64, uint64); | |
4901 | 158 } |