Go to the source code of this file.
§ iv64Add()
Definition at line 173 of file int64vec.cc.
183 for (i=0; i<mn; i++) (*iv)[
i] = (*a)[
i] + (*b)[
i];
188 for(i=mn; i<ma; i++) (*iv)[
i] = (*a)[
i];
192 for(i=mn; i<ma; i++) (*iv)[
i] = (*b)[
i];
197 if (mn != ma)
return NULL;
199 for (i=0; i<mn*a->
cols(); i++) { (*iv)[
i] += (*b)[
i]; }
static int si_min(const int a, const int b)
static int si_max(const int a, const int b)
§ iv64Sub()
Definition at line 203 of file int64vec.cc.
213 for (i=0; i<mn; i++) (*iv)[
i] = (*a)[
i] - (*b)[
i];
218 for(i=mn; i<ma; i++) (*iv)[
i] = (*a)[
i];
222 for(i=mn; i<ma; i++) (*iv)[
i] = -(*b)[
i];
227 if (mn != ma)
return NULL;
229 for (i=0; i<mn*a->
cols(); i++) { (*iv)[
i] -= (*b)[
i]; }
static int si_min(const int a, const int b)
static int si_max(const int a, const int b)