~ubuntu-branches/ubuntu/trusty/cloog/trusty

« back to all changes in this revision

Viewing changes to isl/include/isl/div.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-12-15 18:39:17 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20111215183917-uqggmujou8wna9js
Tags: 0.17.0-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2008-2009 Katholieke Universiteit Leuven
3
 
 *
4
 
 * Use of this software is governed by the GNU LGPLv2.1 license
5
 
 *
6
 
 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7
 
 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8
 
 */
9
 
 
10
 
#ifndef ISL_DIV_H
11
 
#define ISL_DIV_H
12
 
 
13
 
#include <isl/dim.h>
14
 
#include <isl/aff_type.h>
15
 
 
16
 
#if defined(__cplusplus)
17
 
extern "C" {
18
 
#endif
19
 
 
20
 
struct isl_div;
21
 
typedef struct isl_div isl_div;
22
 
 
23
 
isl_ctx *isl_div_get_ctx(__isl_keep isl_div *div);
24
 
 
25
 
struct isl_div *isl_div_alloc(struct isl_dim *dim);
26
 
__isl_give isl_div *isl_div_copy(__isl_keep isl_div *div);
27
 
void isl_div_free(struct isl_div *c);
28
 
 
29
 
void isl_div_get_constant(__isl_keep isl_div *div, isl_int *v);
30
 
void isl_div_get_denominator(__isl_keep isl_div *div, isl_int *v);
31
 
void isl_div_get_coefficient(__isl_keep isl_div *div,
32
 
        enum isl_dim_type type, int pos, isl_int *v);
33
 
void isl_div_set_constant(struct isl_div *div, isl_int v);
34
 
void isl_div_set_denominator(struct isl_div *div, isl_int v);
35
 
void isl_div_set_coefficient(struct isl_div *div,
36
 
        enum isl_dim_type type, int pos, isl_int v);
37
 
 
38
 
unsigned isl_div_dim(__isl_keep isl_div *div, enum isl_dim_type type);
39
 
__isl_give isl_div *isl_div_div(__isl_take isl_div *div, int pos);
40
 
 
41
 
__isl_give isl_aff *isl_aff_from_div(__isl_take isl_div *div);
42
 
 
43
 
#if defined(__cplusplus)
44
 
}
45
 
#endif
46
 
 
47
 
#endif