ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
mem.h File Reference
#include <stdlib.h>
#include "misc/util/abc_global.h"
Include dependency graph for mem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define satoko_alloc(type, n_elements)
 
#define satoko_calloc(type, n_elements)
 
#define satoko_realloc(type, ptr, n_elements)
 
#define satoko_free(p)
 

Macro Definition Documentation

◆ satoko_alloc

#define satoko_alloc ( type,
n_elements )
Value:
((type *) malloc((n_elements) * sizeof(type)))
type
CUBE COVER and CUBE typedefs ///.
Definition exor.h:90
char * malloc()

Definition at line 17 of file mem.h.

◆ satoko_calloc

#define satoko_calloc ( type,
n_elements )
Value:
((type *) calloc((n_elements), sizeof(type)))
char * calloc()

Definition at line 18 of file mem.h.

◆ satoko_free

#define satoko_free ( p)
Value:
do { free(p); p = NULL; } while(0)
Cube * p
Definition exorList.c:222
VOID_HACK free()

Definition at line 20 of file mem.h.

◆ satoko_realloc

#define satoko_realloc ( type,
ptr,
n_elements )
Value:
((type *) realloc(ptr, (n_elements) * sizeof(type)))
char * realloc()

Definition at line 19 of file mem.h.