PLUTO
al_defs.h File Reference

ArrayLib function definitions header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AL_Const   int
 
#define AL_Datatype   MPI_Datatype
 
#define AL_STAGGERED_OVERLAP   1
 
#define AL_ALLOC_(nelem, size)   malloc((nelem)*(size))
 
#define AL_CALLOC_(nelem, size)   calloc((nelem),(size))
 
#define AL_FREE_(ptr)   free((ptr))
 
#define AL_POWEROF2(x)   ((((x)-1)&(x))==0)
 
#define AL_ISEVEN   ((x)-(x)/2*2)
 
#define AL_ISODD   ((x)/2*2-(x)+1)
 
#define AL_ISMAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define AL_ISMIN(a, b)   ((a) < (b) ? (a) : (b))
 

Detailed Description

ArrayLib function definitions header file.

Contains function definitions used in ArrayLib routines.

Author
A. Malagoli (University of Chicago)
G. Muscianisi (g.mus.nosp@m.cian.nosp@m.isi@c.nosp@m.inec.nosp@m.a.it)
Date
Aug 29, 2012

Definition in file al_defs.h.

Macro Definition Documentation

#define AL_ALLOC_ (   nelem,
  size 
)    malloc((nelem)*(size))

Definition at line 33 of file al_defs.h.

#define AL_CALLOC_ (   nelem,
  size 
)    calloc((nelem),(size))

Definition at line 34 of file al_defs.h.

#define AL_Const   int

Definition at line 19 of file al_defs.h.

#define AL_Datatype   MPI_Datatype

Definition at line 22 of file al_defs.h.

#define AL_FREE_ (   ptr)    free((ptr))

Definition at line 42 of file al_defs.h.

#define AL_ISEVEN   ((x)-(x)/2*2)

Definition at line 54 of file al_defs.h.

#define AL_ISMAX (   a,
 
)    ((a) > (b) ? (a) : (b))

Definition at line 60 of file al_defs.h.

#define AL_ISMIN (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 61 of file al_defs.h.

#define AL_ISODD   ((x)/2*2-(x)+1)

Definition at line 55 of file al_defs.h.

#define AL_POWEROF2 (   x)    ((((x)-1)&(x))==0)

Definition at line 48 of file al_defs.h.

#define AL_STAGGERED_OVERLAP   1

Definition at line 25 of file al_defs.h.