LAL  7.1.7.1-5f73ade
LALAtomicDatatypes.h File Reference

Go to the source code of this file.

Macros

#define XLAL_INIT_MEM(x)   memset(&(x), 0, sizeof((x)))
 MACRO to initialize arbitrary variable 'x' to zero. More...
 
#define XLAL_INIT_DECL(var, ...)   var __VA_ARGS__; XLAL_INIT_MEM(var)
 C99 MACRO to declare and zero-initialize a variable, use as "type XLAL_INIT_DECL(var);". More...
 
#define XLAL_NUM_ELEM(x)   ( sizeof((x)) / sizeof((x)[0]) )
 MACRO which gives the number of elements in a fixed-size array. More...
 
#define XLAL_LAST_ELEM(x)   (x)[ XLAL_NUM_ELEM(x) - 1 ]
 MACRO to access the last element in a fixed-size array. More...
 
#define LAL_INT8_C(c)   INT64_C(c)
 Macro for use in defining v as an INT8 constant. More...
 
#define LAL_UINT8_C(c)   UINT64_C(c)
 Macro for use in defining v as an UINT8 constant. More...
 
#define _LAL_C99_COMPLEX_NUMBERS_
 
#define crectf(re, im)   (((REAL4)(re)) + _Complex_I*((REAL4)(im)))
 Construct a COMPLEX8 from real and imaginary parts. More...
 
#define crect(re, im)   (((REAL8)(re)) + _Complex_I*((REAL8)(im)))
 Construct a COMPLEX16 from real and imaginary parts. More...
 
#define cpolarf(r, th)   (((REAL4)(r)) * cexpf(crectf(0, th)))
 Construct a COMPLEX8 from polar modulus and argument. More...
 
#define cpolar(r, th)   (((REAL8)(r)) * cexp(crect(0, th)))
 Construct a COMPLEX16 from polar modulus and argument. More...
 

Typedefs

typedef char CHAR
 One-byte signed integer, see Headers LAL(Atomic)Datatypes.h for more details. More...
 
typedef unsigned char UCHAR
 One-byte unsigned integer, see Headers LAL(Atomic)Datatypes.h for more details. More...
 
typedef unsigned char BOOLEAN
 Boolean logical type, see Headers LAL(Atomic)Datatypes.h for more details. More...
 
typedef int16_t INT2
 Two-byte signed integer. More...
 
typedef int32_t INT4
 Four-byte signed integer. More...
 
typedef uint16_t UINT2
 Two-byte unsigned integer. More...
 
typedef uint32_t UINT4
 Four-byte unsigned integer. More...
 
typedef int64_t INT8
 Eight-byte signed integer; on some platforms this is equivalent to long int instead. More...
 
typedef uint64_t UINT8
 Eight-byte unsigned integer; on some platforms this is equivalent to unsigned long int instead. More...
 
typedef float REAL4
 Single precision real floating-point number (4 bytes). More...
 
typedef double REAL8
 Double precision real floating-point number (8 bytes). More...
 
typedef float complex COMPLEX8
 Single-precision floating-point complex number (8 bytes total) More...
 
typedef double complex COMPLEX16
 Double-precision floating-point complex number (16 bytes total) More...