isl_map_piplib.c: extremum_on: detect equalities first
[isl.git] / isl_vec.h
blobd650ac54fc8c2dedf5daacc3c2bf6d40a2c504d7
1 #ifndef ISL_VEC_H
2 #define ISL_VEC_H
4 #include <stdio.h>
6 #include <isl_int.h>
7 #include <isl_ctx.h>
8 #include <isl_blk.h>
10 #if defined(__cplusplus)
11 extern "C" {
12 #endif
14 struct isl_vec {
15 int ref;
17 unsigned size;
19 struct isl_blk block;
22 struct isl_vec *isl_vec_alloc(struct isl_ctx *ctx, unsigned size);
23 struct isl_vec *isl_vec_copy(struct isl_ctx *ctx, struct isl_vec *vec);
24 struct isl_vec *isl_vec_cow(struct isl_ctx *ctx, struct isl_vec *vec);
25 void isl_vec_free(struct isl_ctx *ctx, struct isl_vec *vec);
27 void isl_vec_dump(struct isl_ctx *ctx, struct isl_vec *vec,
28 FILE *out, int indent);
30 void isl_vec_lcm(struct isl_ctx *ctx, struct isl_vec *vec, isl_int *lcm);
32 #if defined(__cplusplus)
34 #endif
36 #endif