From e13702c278771af26e63bf066f9516e6546adf45 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 5 Jun 2010 19:07:35 +0200 Subject: [PATCH] isl_ctx: add two --- include/isl_ctx.h | 1 + isl_ctx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/isl_ctx.h b/include/isl_ctx.h index 240120b4..5e00ea00 100644 --- a/include/isl_ctx.h +++ b/include/isl_ctx.h @@ -72,6 +72,7 @@ struct isl_ctx { isl_int zero; isl_int one; + isl_int two; isl_int negone; isl_int normalize_gcd; diff --git a/isl_ctx.c b/isl_ctx.c index dbda7319..46337d1b 100644 --- a/isl_ctx.c +++ b/isl_ctx.c @@ -84,6 +84,9 @@ isl_ctx *isl_ctx_alloc_with_options(struct isl_arg *arg, void *user_opt) isl_int_init(ctx->one); isl_int_set_si(ctx->one, 1); + isl_int_init(ctx->two); + isl_int_set_si(ctx->two, 2); + isl_int_init(ctx->negone); isl_int_set_si(ctx->negone, -1); @@ -129,6 +132,7 @@ void isl_ctx_free(struct isl_ctx *ctx) isl_blk_clear_cache(ctx); isl_int_clear(ctx->zero); isl_int_clear(ctx->one); + isl_int_clear(ctx->two); isl_int_clear(ctx->negone); isl_int_clear(ctx->normalize_gcd); isl_arg_free(ctx->user_arg, ctx->user_opt); -- 2.11.4.GIT