Polly 20.0.0git
isl_seq.h
Go to the documentation of this file.
1/*
2 * Copyright 2008-2009 Katholieke Universiteit Leuven
3 *
4 * Use of this software is governed by the MIT license
5 *
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
9
10#ifndef ISL_SEQ_H
11#define ISL_SEQ_H
12
13#include <sys/types.h>
14#include <isl_int.h>
15#include <isl/ctx.h>
16
17#if defined(__cplusplus)
18extern "C" {
19#endif
20
21/* Some common operations on sequences of isl_int's */
22
23void isl_seq_clr(isl_int *p, unsigned len);
24void isl_seq_set(isl_int *p, isl_int v, unsigned len);
25void isl_seq_set_si(isl_int *p, int v, unsigned len);
26void isl_seq_neg(isl_int *dst, isl_int *src, unsigned len);
27void isl_seq_cpy(isl_int *dst, isl_int *src, unsigned len);
28void isl_seq_addmul(isl_int *dst, isl_int f, isl_int *src, unsigned len);
29void isl_seq_submul(isl_int *dst, isl_int f, isl_int *src, unsigned len);
30void isl_seq_swp_or_cpy(isl_int *dst, isl_int *src, unsigned len);
31void isl_seq_scale(isl_int *dst, isl_int *src, isl_int f, unsigned len);
32void isl_seq_scale_down(isl_int *dst, isl_int *src, isl_int f, unsigned len);
33void isl_seq_cdiv_q(isl_int *dst, isl_int *src, isl_int m, unsigned len);
34void isl_seq_fdiv_q(isl_int *dst, isl_int *src, isl_int m, unsigned len);
35void isl_seq_fdiv_r(isl_int *dst, isl_int *src, isl_int m, unsigned len);
36void isl_seq_combine(isl_int *dst, isl_int m1, isl_int *src1,
37 isl_int m2, isl_int *src2, unsigned len);
38void isl_seq_elim(isl_int *dst, isl_int *src, unsigned pos, unsigned len,
39 isl_int *m);
40void isl_seq_abs_max(isl_int *p, unsigned len, isl_int *max);
41void isl_seq_gcd(isl_int *p, unsigned len, isl_int *gcd);
42void isl_seq_lcm(isl_int *p, unsigned len, isl_int *lcm);
43void isl_seq_normalize(struct isl_ctx *ctx, isl_int *p, unsigned len);
44void isl_seq_inner_product(isl_int *p1, isl_int *p2, unsigned len,
45 isl_int *prod);
46int isl_seq_first_non_zero(isl_int *p, unsigned len);
47int isl_seq_last_non_zero(isl_int *p, unsigned len);
48int isl_seq_abs_min_non_zero(isl_int *p, unsigned len);
49int isl_seq_eq(isl_int *p1, isl_int *p2, unsigned len);
50int isl_seq_cmp(isl_int *p1, isl_int *p2, unsigned len);
51int isl_seq_is_neg(isl_int *p1, isl_int *p2, unsigned len);
52
53void isl_seq_substitute(isl_int *p, int pos, isl_int *subs,
54 int p_len, int subs_len, isl_int v);
55
56uint32_t isl_seq_get_hash(isl_int *p, unsigned len);
57uint32_t isl_seq_get_hash_bits(isl_int *p, unsigned len, unsigned bits);
58
59#if defined(__cplusplus)
60}
61#endif
62
63#endif
m
Definition: guard1-0.c:2
void GMPZAPI() gcd(mp_int rop, mp_int op1, mp_int op2)
void GMPZAPI() lcm(mp_int rop, mp_int op1, mp_int op2)
static unsigned pos(__isl_keep isl_space *space, enum isl_dim_type type)
Definition: isl_map.c:70
void isl_seq_submul(isl_int *dst, isl_int f, isl_int *src, unsigned len)
Definition: isl_seq.c:49
void isl_seq_fdiv_q(isl_int *dst, isl_int *src, isl_int m, unsigned len)
Definition: isl_seq.c:91
void isl_seq_cdiv_q(isl_int *dst, isl_int *src, isl_int m, unsigned len)
Definition: isl_seq.c:84
void isl_seq_combine(isl_int *dst, isl_int m1, isl_int *src1, isl_int m2, isl_int *src2, unsigned len)
Definition: isl_seq.c:105
int isl_seq_last_non_zero(isl_int *p, unsigned len)
Definition: isl_seq.c:206
void isl_seq_inner_product(isl_int *p1, isl_int *p2, unsigned len, isl_int *prod)
Definition: isl_seq.c:282
void isl_seq_scale(isl_int *dst, isl_int *src, isl_int f, unsigned len)
Definition: isl_seq.c:70
int isl_seq_is_neg(isl_int *p1, isl_int *p2, unsigned len)
Definition: isl_seq.c:181
int isl_seq_abs_min_non_zero(isl_int *p, unsigned len)
Definition: isl_seq.c:227
int isl_seq_first_non_zero(isl_int *p, unsigned len)
Definition: isl_seq.c:196
void isl_seq_lcm(isl_int *p, unsigned len, isl_int *lcm)
Definition: isl_seq.c:269
void isl_seq_swp_or_cpy(isl_int *dst, isl_int *src, unsigned len)
Definition: isl_seq.c:63
void isl_seq_gcd(isl_int *p, unsigned len, isl_int *gcd)
Definition: isl_seq.c:241
void isl_seq_fdiv_r(isl_int *dst, isl_int *src, isl_int m, unsigned len)
Definition: isl_seq.c:98
void isl_seq_set_si(isl_int *p, int v, unsigned len)
Definition: isl_seq.c:21
void isl_seq_substitute(isl_int *p, int pos, isl_int *subs, int p_len, int subs_len, isl_int v)
Definition: isl_seq.c:328
void isl_seq_clr(isl_int *p, unsigned len)
Definition: isl_seq.c:14
void isl_seq_scale_down(isl_int *dst, isl_int *src, isl_int f, unsigned len)
Definition: isl_seq.c:77
void isl_seq_elim(isl_int *dst, isl_int *src, unsigned pos, unsigned len, isl_int *m)
Definition: isl_seq.c:135
int isl_seq_cmp(isl_int *p1, isl_int *p2, unsigned len)
Definition: isl_seq.c:171
void isl_seq_cpy(isl_int *dst, isl_int *src, unsigned len)
Definition: isl_seq.c:42
uint32_t isl_seq_get_hash(isl_int *p, unsigned len)
Definition: isl_seq.c:338
int isl_seq_eq(isl_int *p1, isl_int *p2, unsigned len)
Definition: isl_seq.c:162
uint32_t isl_seq_get_hash_bits(isl_int *p, unsigned len, unsigned bits)
Definition: isl_seq.c:345
void isl_seq_set(isl_int *p, isl_int v, unsigned len)
Definition: isl_seq.c:28
void isl_seq_normalize(struct isl_ctx *ctx, isl_int *p, unsigned len)
Definition: isl_seq.c:259
void isl_seq_addmul(isl_int *dst, isl_int f, isl_int *src, unsigned len)
Definition: isl_seq.c:56
void isl_seq_neg(isl_int *dst, isl_int *src, unsigned len)
Definition: isl_seq.c:35
void isl_seq_abs_max(isl_int *p, unsigned len, isl_int *max)
Definition: isl_seq.c:216
const char * p
Definition: isl_test.c:8643
const char * f
Definition: isl_test.c:8642