Go to the source code of this file.
◆ iv64Add()
Definition at line 172 of file int64vec.cc.
173{
180 {
182 for (
i=0;
i<mn;
i++) (*iv)[
i] = (*a)[
i] + (*b)[
i];
183 if (ma > mn)
184 {
186 {
187 for(
i=mn;
i<ma;
i++) (*iv)[
i] = (*a)[
i];
188 }
189 else
190 {
191 for(
i=mn;
i<ma;
i++) (*iv)[
i] = (*b)[
i];
192 }
193 }
194 return iv;
195 }
196 if (mn != ma)
return NULL;
198 for (
i=0;
i<mn*a->
cols();
i++) { (*iv)[
i] += (*b)[
i]; }
199 return iv;
200}
static int si_max(const int a, const int b)
static int si_min(const int a, const int b)
◆ iv64Sub()
Definition at line 202 of file int64vec.cc.
203{
210 {
212 for (
i=0;
i<mn;
i++) (*iv)[
i] = (*a)[
i] - (*b)[
i];
213 if (ma > mn)
214 {
216 {
217 for(
i=mn;
i<ma;
i++) (*iv)[
i] = (*a)[
i];
218 }
219 else
220 {
221 for(
i=mn;
i<ma;
i++) (*iv)[
i] = -(*b)[
i];
222 }
223 }
224 return iv;
225 }
226 if (mn != ma)
return NULL;
228 for (
i=0;
i<mn*a->
cols();
i++) { (*iv)[
i] -= (*b)[
i]; }
229 return iv;
230}