|
Packit |
fb9d21 |
/*
|
|
Packit |
fb9d21 |
* Copyright 2008-2009 Katholieke Universiteit Leuven
|
|
Packit |
fb9d21 |
*
|
|
Packit |
fb9d21 |
* Use of this software is governed by the MIT license
|
|
Packit |
fb9d21 |
*
|
|
Packit |
fb9d21 |
* Written by Sven Verdoolaege, K.U.Leuven, Departement
|
|
Packit |
fb9d21 |
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
|
|
Packit |
fb9d21 |
*/
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
#ifndef ISL_BLK_H
|
|
Packit |
fb9d21 |
#define ISL_BLK_H
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
#include <isl_int.h>
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
#if defined(__cplusplus)
|
|
Packit |
fb9d21 |
extern "C" {
|
|
Packit |
fb9d21 |
#endif
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
struct isl_blk {
|
|
Packit |
fb9d21 |
size_t size;
|
|
Packit |
fb9d21 |
isl_int *data;
|
|
Packit |
fb9d21 |
};
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
#define ISL_BLK_CACHE_SIZE 20
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
struct isl_ctx;
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
struct isl_blk isl_blk_alloc(struct isl_ctx *ctx, size_t n);
|
|
Packit |
fb9d21 |
struct isl_blk isl_blk_empty(void);
|
|
Packit |
fb9d21 |
int isl_blk_is_error(struct isl_blk block);
|
|
Packit |
fb9d21 |
struct isl_blk isl_blk_extend(struct isl_ctx *ctx, struct isl_blk block,
|
|
Packit |
fb9d21 |
size_t new_n);
|
|
Packit |
fb9d21 |
void isl_blk_free(struct isl_ctx *ctx, struct isl_blk block);
|
|
Packit |
fb9d21 |
void isl_blk_clear_cache(struct isl_ctx *ctx);
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
#if defined(__cplusplus)
|
|
Packit |
fb9d21 |
}
|
|
Packit |
fb9d21 |
#endif
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
#endif
|