-#include "isl_seq.h"
+/*
+ * Copyright 2008-2009 Katholieke Universiteit Leuven
+ *
+ * Use of this software is governed by the GNU LGPLv2.1 license
+ *
+ * Written by Sven Verdoolaege, K.U.Leuven, Departement
+ * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
+ */
+
+#include <isl_ctx_private.h>
+#include <isl/seq.h>
void isl_seq_clr(isl_int *p, unsigned len)
{
isl_int_set_si(p[i], 0);
}
+void isl_seq_set(isl_int *p, isl_int v, unsigned len)
+{
+ int i;
+ for (i = 0; i < len; ++i)
+ isl_int_set(p[i], v);
+}
+
void isl_seq_neg(isl_int *dst, isl_int *src, unsigned len)
{
int i;
isl_int_submul(dst[i], f, src[i]);
}
+void isl_seq_addmul(isl_int *dst, isl_int f, isl_int *src, unsigned len)
+{
+ int i;
+ for (i = 0; i < len; ++i)
+ isl_int_addmul(dst[i], f, src[i]);
+}
+
void isl_seq_swp_or_cpy(isl_int *dst, isl_int *src, unsigned len)
{
int i;