Polly 22.0.0git
isl_blk.c File Reference
#include <isl_blk.h>
#include <isl_ctx_private.h>

Go to the source code of this file.

Macros

#define ISL_BLK_MAX_MISS   100

Functions

struct isl_blk isl_blk_empty ()
static int isl_blk_is_empty (struct isl_blk block)
static struct isl_blk isl_blk_error ()
int isl_blk_is_error (struct isl_blk block)
static void isl_blk_free_force (struct isl_ctx *ctx, struct isl_blk block)
static struct isl_blk extend (struct isl_ctx *ctx, struct isl_blk block, size_t new_n)
struct isl_blk isl_blk_alloc (struct isl_ctx *ctx, size_t n)
struct isl_blk isl_blk_extend (struct isl_ctx *ctx, struct isl_blk block, size_t new_n)
void isl_blk_free (struct isl_ctx *ctx, struct isl_blk block)
void isl_blk_clear_cache (struct isl_ctx *ctx)

Macro Definition Documentation

◆ ISL_BLK_MAX_MISS

#define ISL_BLK_MAX_MISS   100

Definition at line 14 of file isl_blk.c.

Referenced by isl_blk_alloc().

Function Documentation

◆ extend()

struct isl_blk extend ( struct isl_ctx * ctx,
struct isl_blk block,
size_t new_n )
static

◆ isl_blk_alloc()

◆ isl_blk_clear_cache()

void isl_blk_clear_cache ( struct isl_ctx * ctx)

Definition at line 127 of file isl_blk.c.

References isl_ctx::cache, isl_blk_free_force(), and isl_ctx::n_cached.

Referenced by isl_ctx_free().

◆ isl_blk_empty()

struct isl_blk isl_blk_empty ( void )

◆ isl_blk_error()

struct isl_blk isl_blk_error ( )
static

Definition at line 29 of file isl_blk.c.

References isl_blk::data, isl_blk_error(), and isl_blk::size.

Referenced by extend(), and isl_blk_error().

◆ isl_blk_extend()

struct isl_blk isl_blk_extend ( struct isl_ctx * ctx,
struct isl_blk block,
size_t new_n )

◆ isl_blk_free()

◆ isl_blk_free_force()

void isl_blk_free_force ( struct isl_ctx * ctx,
struct isl_blk block )
static

Definition at line 42 of file isl_blk.c.

References isl_blk::data, isl_int_clear, and isl_blk::size.

Referenced by extend(), isl_blk_alloc(), isl_blk_clear_cache(), and isl_blk_free().

◆ isl_blk_is_empty()

int isl_blk_is_empty ( struct isl_blk block)
static

Definition at line 24 of file isl_blk.c.

References isl_blk::data, and isl_blk::size.

Referenced by isl_blk_extend(), and isl_blk_free().

◆ isl_blk_is_error()