isl_map_project_out: fix error return value
[isl.git] / include / isl_blk.h
blobb6242c724b33c4caa6e0878e4d84e1fa597e36c1
1 /*
2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
10 #ifndef ISL_BLK_H
11 #define ISL_BLK_H
13 #include <isl_int.h>
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
19 struct isl_blk {
20 size_t size;
21 isl_int *data;
24 #define ISL_BLK_CACHE_SIZE 20
26 struct isl_ctx;
28 struct isl_blk isl_blk_alloc(struct isl_ctx *ctx, size_t n);
29 struct isl_blk isl_blk_empty();
30 int isl_blk_is_error(struct isl_blk block);
31 struct isl_blk isl_blk_extend(struct isl_ctx *ctx, struct isl_blk block,
32 size_t new_n);
33 void isl_blk_free(struct isl_ctx *ctx, struct isl_blk block);
34 void isl_blk_clear_cache(struct isl_ctx *ctx);
36 #if defined(__cplusplus)
38 #endif
40 #endif