src/air/air.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <float.h>

Include dependency graph for air.h:

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


Data Structures

struct  airEnum
struct  airArray
struct  airThreadBarrier
union  airFloat
union  airDouble
struct  airRandMTState
struct  airMop

Defines

#define TEEM_VERSION_MAJOR   1
#define TEEM_VERSION_MINOR   10
#define TEEM_VERSION_PATCH   00
#define TEEM_VERSION   11000
#define TEEM_VERSION_STRING   "1.10.0"
#define AIR_EXPORT   extern
#define AIR_LLONG_FMT   "%lld"
#define AIR_ULLONG_FMT   "%llu"
#define AIR_LLONG(x)   x##ll
#define AIR_ULLONG(x)   x##ull
#define AIR_PI   3.14159265358979323846
#define AIR_E   2.71828182845904523536
#define AIR_STRLEN_SMALL   (128+1)
#define AIR_STRLEN_MED   (256+1)
#define AIR_STRLEN_LARGE   (512+1)
#define AIR_STRLEN_HUGE   (1024+1)
#define AIR_RANDMT_N   624
#define AIR_TYPE_MAX   11
#define AIR_INSANE_MAX   12
#define AIR_NODIO_MAX   12
#define AIR_TRUE   1
#define AIR_FALSE   0
#define AIR_WHITESPACE   " \t\n\r\v\f"
#define AIR_UNUSED(x)   (void)(x)
#define AIR_CAST(t, v)   ((t)(v))
#define AIR_ENDIAN   (airMyEndian)
#define AIR_QNANHIBIT   (airMyQNaNHiBit)
#define AIR_DIO   (airMyDio)
#define AIR_32BIT   (airMy32Bit)
#define AIR_NAN   (airFloatQNaN.f)
#define AIR_QNAN   (airFloatQNaN.f)
#define AIR_SNAN   (airFloatSNaN.f)
#define AIR_POS_INF   (airFloatPosInf.f)
#define AIR_NEG_INF   (airFloatNegInf.f)
#define AIR_EXISTS(x)   (!((x) - (x)))
#define AIR_EXISTS_F(x)   ((*(unsigned int*)&(x) & 0x7f800000) != 0x7f800000)
#define AIR_EXISTS_D(x)
#define AIR_ISNAN_F(x)
#define AIR_MAX(a, b)   ((a) > (b) ? (a) : (b))
#define AIR_MIN(a, b)   ((a) < (b) ? (a) : (b))
#define AIR_ABS(a)   ((a) > 0.0f ? (a) : -(a))
#define AIR_COMPARE(a, b)
#define AIR_IN_OP(a, b, c)   ((a) < (b) && (b) < (c))
#define AIR_IN_CL(a, b, c)   ((a) <= (b) && (b) <= (c))
#define AIR_CLAMP(a, b, c)
#define AIR_MOD(i, N)   ((i)%(N) >= 0 ? (i)%(N) : N + (i)%(N))
#define AIR_LERP(w, a, b)   ((w)*((b) - (a)) + (a))
#define AIR_AFFINE(i, x, I, o, O)
#define AIR_DELTA(i, x, I, o, O)
#define AIR_ROUNDUP(x)   ((int)(floor((x)+0.5)))
#define AIR_ROUNDDOWN(x)   ((int)(ceil((x)-0.5)))
#define _AIR_SIZE_T_CNV   "%lu"
#define _AIR_PTRDIFF_T_CNV   "%ld"

Typedefs

typedef signed long long airLLong
typedef unsigned long long airULLong
typedef struct _airThread airThread
typedef struct _airThreadMutex airThreadMutex
typedef struct _airThreadCond airThreadCond
typedef void *(* airMopper )(void *)

Enumerations

enum  { airEndianUnknown, airEndianLittle = 1234, airEndianBig = 4321, airEndianLast }
enum  {
  airFP_Unknown, airFP_SNAN, airFP_QNAN, airFP_POS_INF,
  airFP_NEG_INF, airFP_POS_NORM, airFP_NEG_NORM, airFP_POS_DENORM,
  airFP_NEG_DENORM, airFP_POS_ZERO, airFP_NEG_ZERO, airFP_Last
}
enum  {
  airTypeUnknown, airTypeBool, airTypeInt, airTypeUInt,
  airTypeLongInt, airTypeSize_t, airTypeFloat, airTypeDouble,
  airTypeChar, airTypeString, airTypeEnum, airTypeOther,
  airTypeLast
}
enum  {
  airInsane_not, airInsane_endian, airInsane_pInfExists, airInsane_nInfExists,
  airInsane_NaNExists, airInsane_FltDblFPClass, airInsane_QNaNHiBit, airInsane_AIR_NAN,
  airInsane_dio, airInsane_32Bit, airInsane_UCSize, airInsane_FISize,
  airInsane_DLSize
}
enum  {
  airNoDio_okay, airNoDio_arch, airNoDio_format, airNoDio_std,
  airNoDio_fd, airNoDio_dioinfo, airNoDio_small, airNoDio_size,
  airNoDio_ptr, airNoDio_fpos, airNoDio_setfl, airNoDio_test,
  airNoDio_disable
}
enum  { airMopNever, airMopOnError, airMopOnOkay, airMopAlways }

Functions

AIR_EXPORT int airEnumUnknown (const airEnum *enm)
AIR_EXPORT int airEnumLast (const airEnum *enm)
AIR_EXPORT int airEnumValCheck (const airEnum *enm, int val)
AIR_EXPORT const char * airEnumStr (const airEnum *enm, int val)
AIR_EXPORT const char * airEnumDesc (const airEnum *enm, int val)
AIR_EXPORT int airEnumVal (const airEnum *enm, const char *str)
AIR_EXPORT char * airEnumFmtDesc (const airEnum *enm, int val, int canon, const char *fmt)
AIR_EXPORT airArrayairArrayNew (void **dataP, unsigned int *lenP, size_t unit, unsigned int incr)
AIR_EXPORT void airArrayStructCB (airArray *a, void(*initCB)(void *), void(*doneCB)(void *))
AIR_EXPORT void airArrayPointerCB (airArray *a, void *(*allocCB)(void), void *(*freeCB)(void *))
AIR_EXPORT void airArrayLenSet (airArray *a, unsigned int newlen)
AIR_EXPORT void airArrayLenPreSet (airArray *a, unsigned int newlen)
AIR_EXPORT unsigned int airArrayLenIncr (airArray *a, int delta)
AIR_EXPORT airArrayairArrayNix (airArray *a)
AIR_EXPORT airArrayairArrayNuke (airArray *a)
AIR_EXPORT airThreadairThreadNew (void)
AIR_EXPORT int airThreadStart (airThread *thread, void *(*threadBody)(void *), void *arg)
AIR_EXPORT int airThreadJoin (airThread *thread, void **retP)
AIR_EXPORT airThreadairThreadNix (airThread *thread)
AIR_EXPORT airThreadMutexairThreadMutexNew ()
AIR_EXPORT int airThreadMutexLock (airThreadMutex *mutex)
AIR_EXPORT int airThreadMutexUnlock (airThreadMutex *mutex)
AIR_EXPORT airThreadMutexairThreadMutexNix (airThreadMutex *mutex)
AIR_EXPORT airThreadCondairThreadCondNew ()
AIR_EXPORT int airThreadCondWait (airThreadCond *cond, airThreadMutex *mutex)
AIR_EXPORT int airThreadCondSignal (airThreadCond *cond)
AIR_EXPORT int airThreadCondBroadcast (airThreadCond *cond)
AIR_EXPORT airThreadCondairThreadCondNix (airThreadCond *cond)
AIR_EXPORT airThreadBarrierairThreadBarrierNew (unsigned numUsers)
AIR_EXPORT int airThreadBarrierWait (airThreadBarrier *barrier)
AIR_EXPORT airThreadBarrierairThreadBarrierNix (airThreadBarrier *barrier)
AIR_EXPORT float airFPPartsToVal_f (unsigned int sign, unsigned int expo, unsigned int mant)
AIR_EXPORT void airFPValToParts_f (unsigned int *signP, unsigned int *expoP, unsigned int *mantP, float v)
AIR_EXPORT double airFPPartsToVal_d (unsigned int sign, unsigned int expo, unsigned int mant0, unsigned int mant1)
AIR_EXPORT void airFPValToParts_d (unsigned int *signP, unsigned int *expoP, unsigned int *mant0P, unsigned int *mant1P, double v)
AIR_EXPORT float airFPGen_f (int cls)
AIR_EXPORT double airFPGen_d (int cls)
AIR_EXPORT int airFPClass_f (float val)
AIR_EXPORT int airFPClass_d (double val)
AIR_EXPORT void airFPFprintf_f (FILE *file, float val)
AIR_EXPORT void airFPFprintf_d (FILE *file, double val)
AIR_EXPORT float airNaN (void)
AIR_EXPORT int airIsNaN (double d)
AIR_EXPORT int airIsInf_f (float f)
AIR_EXPORT int airIsInf_d (double d)
AIR_EXPORT int airExists (double d)
AIR_EXPORT airRandMTStateairRandMTStateNew (unsigned int seed)
AIR_EXPORT airRandMTStateairRandMTStateNix (airRandMTState *state)
AIR_EXPORT void airSrandMT_r (airRandMTState *state, unsigned int seed)
AIR_EXPORT double airDrandMT_r (airRandMTState *state)
AIR_EXPORT unsigned int airUIrandMT_r (airRandMTState *state)
AIR_EXPORT double airDrandMT53_r (airRandMTState *state)
AIR_EXPORT unsigned int airRandInt (unsigned int N)
AIR_EXPORT unsigned int airRandInt_r (airRandMTState *state, unsigned int N)
AIR_EXPORT void airSrandMT (unsigned int seed)
AIR_EXPORT double airDrandMT ()
AIR_EXPORT double airAtod (const char *str)
AIR_EXPORT int airSingleSscanf (const char *str, const char *fmt, void *ptr)
AIR_EXPORT unsigned int airParseStrB (int *out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT unsigned int airParseStrI (int *out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT unsigned int airParseStrUI (unsigned int *out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT unsigned int airParseStrZ (size_t *out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT unsigned int airParseStrF (float *out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT unsigned int airParseStrD (double *out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT unsigned int airParseStrC (char *out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT unsigned int airParseStrS (char **out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT unsigned int airParseStrE (int *out, const char *s, const char *ct, unsigned int n,...)
AIR_EXPORT char * airStrdup (const char *s)
AIR_EXPORT size_t airStrlen (const char *s)
AIR_EXPORT char * airStrtok (char *s, const char *ct, char **last)
AIR_EXPORT unsigned int airStrntok (const char *s, const char *ct)
AIR_EXPORT char * airStrtrans (char *s, char from, char to)
AIR_EXPORT int airEndsWith (const char *s, const char *suff)
AIR_EXPORT char * airUnescape (char *s)
AIR_EXPORT char * airOneLinify (char *s)
AIR_EXPORT char * airToLower (char *str)
AIR_EXPORT char * airToUpper (char *str)
AIR_EXPORT unsigned int airOneLine (FILE *file, char *line, int size)
AIR_EXPORT const char * airInsaneErr (int insane)
AIR_EXPORT int airSanity (void)
AIR_EXPORT void * airNull (void)
AIR_EXPORT void * airSetNull (void **ptrP)
AIR_EXPORT void * airFree (void *ptr)
AIR_EXPORT FILE * airFopen (const char *name, FILE *std, const char *mode)
AIR_EXPORT FILE * airFclose (FILE *file)
AIR_EXPORT int airSinglePrintf (FILE *file, char *str, const char *fmt,...)
AIR_EXPORT unsigned int airIndex (double min, double val, double max, unsigned int N)
AIR_EXPORT unsigned int airIndexClamp (double min, double val, double max, unsigned int N)
AIR_EXPORT airULLong airIndexULL (double min, double val, double max, airULLong N)
AIR_EXPORT airULLong airIndexClampULL (double min, double val, double max, airULLong N)
AIR_EXPORT char * airDoneStr (double start, double here, double end, char *str)
AIR_EXPORT double airTime ()
AIR_EXPORT void airBinaryPrintUInt (FILE *file, int digits, unsigned int N)
AIR_EXPORT int airILoad (void *v, int t)
AIR_EXPORT float airFLoad (void *v, int t)
AIR_EXPORT double airDLoad (void *v, int t)
AIR_EXPORT int airIStore (void *v, int t, int i)
AIR_EXPORT float airFStore (void *v, int t, float f)
AIR_EXPORT double airDStore (void *v, int t, double d)
AIR_EXPORT void airEqvAdd (airArray *eqvArr, unsigned int j, unsigned int k)
AIR_EXPORT unsigned int airEqvMap (airArray *eqvArr, unsigned int *map, unsigned int len)
AIR_EXPORT unsigned int airEqvSettle (unsigned int *map, unsigned int len)
AIR_EXPORT double airFastExp (double val)
AIR_EXPORT void airNormalRand (double *z1, double *z2)
AIR_EXPORT void airNormalRand_r (double *z1, double *z2, airRandMTState *state)
AIR_EXPORT void airShuffle (unsigned int *buff, unsigned int N, int perm)
AIR_EXPORT void airShuffle_r (airRandMTState *state, unsigned int *buff, unsigned int N, int perm)
AIR_EXPORT double airCbrt (double)
AIR_EXPORT double airMode3 (double a, double b, double c)
AIR_EXPORT double airMode3_d (const double v[3])
AIR_EXPORT double airSgnPow (double, double)
AIR_EXPORT double airIntPow (double v, int p)
AIR_EXPORT int airSgn (double)
AIR_EXPORT int airLog2 (double n)
AIR_EXPORT double airErfc (double x)
AIR_EXPORT double airErf (double x)
AIR_EXPORT double airGaussian (double x, double mean, double stdv)
AIR_EXPORT double airBesselI0 (double x)
AIR_EXPORT double airBesselI1 (double x)
AIR_EXPORT double airBesselI0ExpScaled (double x)
AIR_EXPORT double airBesselI1ExpScaled (double x)
AIR_EXPORT double airLogBesselI0 (double x)
AIR_EXPORT double airBesselI1By0 (double x)
AIR_EXPORT double airBesselIn (int n, double x)
AIR_EXPORT double airBesselInExpScaled (int n, double x)
AIR_EXPORT const char * airNoDioErr (int noDio)
AIR_EXPORT void airDioInfo (int *align, int *min, int *max, int fd)
AIR_EXPORT int airDioTest (int fd, const void *ptr, size_t size)
AIR_EXPORT void * airDioMalloc (size_t size, int fd)
AIR_EXPORT size_t airDioRead (int fd, void *ptr, size_t size)
AIR_EXPORT size_t airDioWrite (int fd, const void *ptr, size_t size)
AIR_EXPORT airArrayairMopNew (void)
AIR_EXPORT void airMopAdd (airArray *arr, void *ptr, airMopper mop, int when)
AIR_EXPORT void airMopSub (airArray *arr, void *ptr, airMopper mop)
AIR_EXPORT void airMopMem (airArray *arr, void *_ptrP, int when)
AIR_EXPORT void airMopUnMem (airArray *arr, void *_ptrP)
AIR_EXPORT void airMopPrint (airArray *arr, const void *_str, int when)
AIR_EXPORT void airMopDone (airArray *arr, int error)
AIR_EXPORT void airMopError (airArray *arr)
AIR_EXPORT void airMopOkay (airArray *arr)
AIR_EXPORT void airMopDebug (airArray *arr)

Variables

AIR_EXPORT const airEnum *const airEndian
AIR_EXPORT const int airMyEndian
AIR_EXPORT const int airThreadCapable
AIR_EXPORT int airThreadNoopWarning
AIR_EXPORT const int airMyQNaNHiBit
AIR_EXPORT const airFloat airFloatQNaN
AIR_EXPORT const airFloat airFloatSNaN
AIR_EXPORT const airFloat airFloatPosInf
AIR_EXPORT const airFloat airFloatNegInf
AIR_EXPORT airRandMTStateairRandMTStateGlobal
AIR_EXPORT const airEnum *const airBool
AIR_EXPORT unsigned int(* airParseStr [AIR_TYPE_MAX+1])(void *, const char *, const char *, unsigned int,...)
AIR_EXPORT int airStrtokQuoting
AIR_EXPORT const char * airTeemVersion
AIR_EXPORT const char * airTeemReleaseDate
AIR_EXPORT const int airMy32Bit
AIR_EXPORT const char airMyFmt_size_t []
AIR_EXPORT const char airTypeStr [AIR_TYPE_MAX+1][AIR_STRLEN_SMALL]
AIR_EXPORT const size_t airTypeSize [AIR_TYPE_MAX+1]
AIR_EXPORT const int airMyDio
AIR_EXPORT int airDisableDio

Define Documentation

#define _AIR_PTRDIFF_T_CNV   "%ld"

#define _AIR_SIZE_T_CNV   "%lu"

#define AIR_32BIT   (airMy32Bit)

#define AIR_ABS (  )     ((a) > 0.0f ? (a) : -(a))

#define AIR_AFFINE ( i,
x,
I,
o,
 ) 

Value:

( \
((double)(O)-(o))*((double)(x)-(i)) / ((double)(I)-(i)) + (o))

#define AIR_CAST ( t,
 )     ((t)(v))

#define AIR_CLAMP ( a,
b,
 ) 

Value:

((b) < (a)        \
                           ? (a)           \
                           : ((b) > (c)    \
                              ? (c)        \
                              : (b)))

#define AIR_COMPARE ( a,
 ) 

Value:

((a) < (b)     \
                          ? -1          \
                          : ((a) > (b) \
                             ? 1        \
                             : 0))

#define AIR_DELTA ( i,
x,
I,
o,
 ) 

Value:

( \
((double)(O)-(o))*((double)(x)) / ((double)(I)-(i)) )

#define AIR_DIO   (airMyDio)

#define AIR_E   2.71828182845904523536

#define AIR_ENDIAN   (airMyEndian)

#define AIR_EXISTS (  )     (!((x) - (x)))

#define AIR_EXISTS_D (  ) 

Value:

(                               \
  (*(airULLong*)&(x) & AIR_ULLONG(0x7ff0000000000000))  \
    != AIR_ULLONG(0x7ff0000000000000))

#define AIR_EXISTS_F (  )     ((*(unsigned int*)&(x) & 0x7f800000) != 0x7f800000)

#define AIR_EXPORT   extern

#define AIR_FALSE   0

#define AIR_IN_CL ( a,
b,
 )     ((a) <= (b) && (b) <= (c))

#define AIR_IN_OP ( a,
b,
 )     ((a) < (b) && (b) < (c))

#define AIR_INSANE_MAX   12

#define AIR_ISNAN_F (  ) 

Value:

(((*(unsigned int*)&(x) & 0x7f800000)==0x7f800000) && \
                         (*(unsigned int*)&(x) & 0x007fffff))

#define AIR_LERP ( w,
a,
 )     ((w)*((b) - (a)) + (a))

#define AIR_LLONG (  )     x##ll

#define AIR_LLONG_FMT   "%lld"

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

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

#define AIR_MOD ( i,
 )     ((i)%(N) >= 0 ? (i)%(N) : N + (i)%(N))

#define AIR_NAN   (airFloatQNaN.f)

#define AIR_NEG_INF   (airFloatNegInf.f)

#define AIR_NODIO_MAX   12

#define AIR_PI   3.14159265358979323846

#define AIR_POS_INF   (airFloatPosInf.f)

#define AIR_QNAN   (airFloatQNaN.f)

#define AIR_QNANHIBIT   (airMyQNaNHiBit)

#define AIR_RANDMT_N   624

#define AIR_ROUNDDOWN (  )     ((int)(ceil((x)-0.5)))

#define AIR_ROUNDUP (  )     ((int)(floor((x)+0.5)))

#define AIR_SNAN   (airFloatSNaN.f)

#define AIR_STRLEN_HUGE   (1024+1)

#define AIR_STRLEN_LARGE   (512+1)

#define AIR_STRLEN_MED   (256+1)

#define AIR_STRLEN_SMALL   (128+1)

#define AIR_TRUE   1

#define AIR_TYPE_MAX   11

#define AIR_ULLONG (  )     x##ull

#define AIR_ULLONG_FMT   "%llu"

#define AIR_UNUSED (  )     (void)(x)

#define AIR_WHITESPACE   " \t\n\r\v\f"

#define TEEM_VERSION   11000

#define TEEM_VERSION_MAJOR   1

#define TEEM_VERSION_MINOR   10

#define TEEM_VERSION_PATCH   00

#define TEEM_VERSION_STRING   "1.10.0"


Typedef Documentation

typedef signed long long airLLong

typedef void*(* airMopper)(void *)

typedef struct _airThread airThread

typedef struct _airThreadCond airThreadCond

typedef unsigned long long airULLong


Enumeration Type Documentation

anonymous enum

Enumerator:
airEndianUnknown 
airEndianLittle 
airEndianBig 
airEndianLast 

anonymous enum

Enumerator:
airFP_Unknown 
airFP_SNAN 
airFP_QNAN 
airFP_POS_INF 
airFP_NEG_INF 
airFP_POS_NORM 
airFP_NEG_NORM 
airFP_POS_DENORM 
airFP_NEG_DENORM 
airFP_POS_ZERO 
airFP_NEG_ZERO 
airFP_Last 

anonymous enum

Enumerator:
airTypeUnknown 
airTypeBool 
airTypeInt 
airTypeUInt 
airTypeLongInt 
airTypeSize_t 
airTypeFloat 
airTypeDouble 
airTypeChar 
airTypeString 
airTypeEnum 
airTypeOther 
airTypeLast 

anonymous enum

Enumerator:
airInsane_not 
airInsane_endian 
airInsane_pInfExists 
airInsane_nInfExists 
airInsane_NaNExists 
airInsane_FltDblFPClass 
airInsane_QNaNHiBit 
airInsane_AIR_NAN 
airInsane_dio 
airInsane_32Bit 
airInsane_UCSize 
airInsane_FISize 
airInsane_DLSize 

anonymous enum

Enumerator:
airNoDio_okay 
airNoDio_arch 
airNoDio_format 
airNoDio_std 
airNoDio_fd 
airNoDio_dioinfo 
airNoDio_small 
airNoDio_size 
airNoDio_ptr 
airNoDio_fpos 
airNoDio_setfl 
airNoDio_test 
airNoDio_disable 

anonymous enum

Enumerator:
airMopNever 
airMopOnError 
airMopOnOkay 
airMopAlways 


Function Documentation

AIR_EXPORT unsigned int airArrayLenIncr ( airArray a,
int  delta 
)

AIR_EXPORT void airArrayLenPreSet ( airArray a,
unsigned int  newlen 
)

AIR_EXPORT void airArrayLenSet ( airArray a,
unsigned int  newlen 
)

AIR_EXPORT airArray* airArrayNew ( void **  dataP,
unsigned int *  lenP,
size_t  unit,
unsigned int  incr 
)

AIR_EXPORT airArray* airArrayNix ( airArray a  ) 

AIR_EXPORT airArray* airArrayNuke ( airArray a  ) 

AIR_EXPORT void airArrayPointerCB ( airArray a,
void *(*)(void)  allocCB,
void *(*)(void *)  freeCB 
)

AIR_EXPORT void airArrayStructCB ( airArray a,
void(*)(void *)  initCB,
void(*)(void *)  doneCB 
)

AIR_EXPORT double airAtod ( const char *  str  ) 

AIR_EXPORT double airBesselI0 ( double  x  ) 

AIR_EXPORT double airBesselI0ExpScaled ( double  x  ) 

AIR_EXPORT double airBesselI1 ( double  x  ) 

AIR_EXPORT double airBesselI1By0 ( double  x  ) 

AIR_EXPORT double airBesselI1ExpScaled ( double  x  ) 

AIR_EXPORT double airBesselIn ( int  n,
double  x 
)

AIR_EXPORT double airBesselInExpScaled ( int  n,
double  x 
)

AIR_EXPORT void airBinaryPrintUInt ( FILE *  file,
int  digits,
unsigned int  N 
)

AIR_EXPORT double airCbrt ( double   ) 

AIR_EXPORT void airDioInfo ( int *  align,
int *  min,
int *  max,
int  fd 
)

AIR_EXPORT void* airDioMalloc ( size_t  size,
int  fd 
)

AIR_EXPORT size_t airDioRead ( int  fd,
void *  ptr,
size_t  size 
)

AIR_EXPORT int airDioTest ( int  fd,
const void *  ptr,
size_t  size 
)

AIR_EXPORT size_t airDioWrite ( int  fd,
const void *  ptr,
size_t  size 
)

AIR_EXPORT double airDLoad ( void *  v,
int  t 
)

AIR_EXPORT char* airDoneStr ( double  start,
double  here,
double  end,
char *  str 
)

AIR_EXPORT double airDrandMT (  ) 

AIR_EXPORT double airDrandMT53_r ( airRandMTState state  ) 

AIR_EXPORT double airDrandMT_r ( airRandMTState state  ) 

AIR_EXPORT double airDStore ( void *  v,
int  t,
double  d 
)

AIR_EXPORT int airEndsWith ( const char *  s,
const char *  suff 
)

AIR_EXPORT const char* airEnumDesc ( const airEnum enm,
int  val 
)

AIR_EXPORT char* airEnumFmtDesc ( const airEnum enm,
int  val,
int  canon,
const char *  fmt 
)

AIR_EXPORT int airEnumLast ( const airEnum enm  ) 

AIR_EXPORT const char* airEnumStr ( const airEnum enm,
int  val 
)

AIR_EXPORT int airEnumUnknown ( const airEnum enm  ) 

AIR_EXPORT int airEnumVal ( const airEnum enm,
const char *  str 
)

AIR_EXPORT int airEnumValCheck ( const airEnum enm,
int  val 
)

AIR_EXPORT void airEqvAdd ( airArray eqvArr,
unsigned int  j,
unsigned int  k 
)

AIR_EXPORT unsigned int airEqvMap ( airArray eqvArr,
unsigned int *  map,
unsigned int  len 
)

AIR_EXPORT unsigned int airEqvSettle ( unsigned int *  map,
unsigned int  len 
)

AIR_EXPORT double airErf ( double  x  ) 

AIR_EXPORT double airErfc ( double  x  ) 

AIR_EXPORT int airExists ( double  d  ) 

AIR_EXPORT double airFastExp ( double  val  ) 

AIR_EXPORT FILE* airFclose ( FILE *  file  ) 

AIR_EXPORT float airFLoad ( void *  v,
int  t 
)

AIR_EXPORT FILE* airFopen ( const char *  name,
FILE *  std,
const char *  mode 
)

AIR_EXPORT int airFPClass_d ( double  val  ) 

AIR_EXPORT int airFPClass_f ( float  val  ) 

AIR_EXPORT void airFPFprintf_d ( FILE *  file,
double  val 
)

AIR_EXPORT void airFPFprintf_f ( FILE *  file,
float  val 
)

AIR_EXPORT double airFPGen_d ( int  cls  ) 

AIR_EXPORT float airFPGen_f ( int  cls  ) 

AIR_EXPORT double airFPPartsToVal_d ( unsigned int  sign,
unsigned int  expo,
unsigned int  mant0,
unsigned int  mant1 
)

AIR_EXPORT float airFPPartsToVal_f ( unsigned int  sign,
unsigned int  expo,
unsigned int  mant 
)

AIR_EXPORT void airFPValToParts_d ( unsigned int *  signP,
unsigned int *  expoP,
unsigned int *  mant0P,
unsigned int *  mant1P,
double  v 
)

AIR_EXPORT void airFPValToParts_f ( unsigned int *  signP,
unsigned int *  expoP,
unsigned int *  mantP,
float  v 
)

AIR_EXPORT void* airFree ( void *  ptr  ) 

AIR_EXPORT float airFStore ( void *  v,
int  t,
float  f 
)

AIR_EXPORT double airGaussian ( double  x,
double  mean,
double  stdv 
)

AIR_EXPORT int airILoad ( void *  v,
int  t 
)

AIR_EXPORT unsigned int airIndex ( double  min,
double  val,
double  max,
unsigned int  N 
)

AIR_EXPORT unsigned int airIndexClamp ( double  min,
double  val,
double  max,
unsigned int  N 
)

AIR_EXPORT airULLong airIndexClampULL ( double  min,
double  val,
double  max,
airULLong  N 
)

AIR_EXPORT airULLong airIndexULL ( double  min,
double  val,
double  max,
airULLong  N 
)

AIR_EXPORT const char* airInsaneErr ( int  insane  ) 

AIR_EXPORT double airIntPow ( double  v,
int  p 
)

AIR_EXPORT int airIsInf_d ( double  d  ) 

AIR_EXPORT int airIsInf_f ( float  f  ) 

AIR_EXPORT int airIsNaN ( double  d  ) 

AIR_EXPORT int airIStore ( void *  v,
int  t,
int  i 
)

AIR_EXPORT int airLog2 ( double  n  ) 

AIR_EXPORT double airLogBesselI0 ( double  x  ) 

AIR_EXPORT double airMode3 ( double  a,
double  b,
double  c 
)

AIR_EXPORT double airMode3_d ( const double  v[3]  ) 

AIR_EXPORT void airMopAdd ( airArray arr,
void *  ptr,
airMopper  mop,
int  when 
)

AIR_EXPORT void airMopDebug ( airArray arr  ) 

AIR_EXPORT void airMopDone ( airArray arr,
int  error 
)

AIR_EXPORT void airMopError ( airArray arr  ) 

AIR_EXPORT void airMopMem ( airArray arr,
void *  _ptrP,
int  when 
)

AIR_EXPORT airArray* airMopNew ( void   ) 

AIR_EXPORT void airMopOkay ( airArray arr  ) 

AIR_EXPORT void airMopPrint ( airArray arr,
const void *  _str,
int  when 
)

AIR_EXPORT void airMopSub ( airArray arr,
void *  ptr,
airMopper  mop 
)

AIR_EXPORT void airMopUnMem ( airArray arr,
void *  _ptrP 
)

AIR_EXPORT float airNaN ( void   ) 

AIR_EXPORT const char* airNoDioErr ( int  noDio  ) 

AIR_EXPORT void airNormalRand ( double *  z1,
double *  z2 
)

AIR_EXPORT void airNormalRand_r ( double *  z1,
double *  z2,
airRandMTState state 
)

AIR_EXPORT void* airNull ( void   ) 

AIR_EXPORT unsigned int airOneLine ( FILE *  file,
char *  line,
int  size 
)

AIR_EXPORT char* airOneLinify ( char *  s  ) 

AIR_EXPORT unsigned int airParseStrB ( int *  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airParseStrC ( char *  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airParseStrD ( double *  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airParseStrE ( int *  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airParseStrF ( float *  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airParseStrI ( int *  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airParseStrS ( char **  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airParseStrUI ( unsigned int *  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airParseStrZ ( size_t *  out,
const char *  s,
const char *  ct,
unsigned int  n,
  ... 
)

AIR_EXPORT unsigned int airRandInt ( unsigned int  N  ) 

AIR_EXPORT unsigned int airRandInt_r ( airRandMTState state,
unsigned int  N 
)

AIR_EXPORT airRandMTState* airRandMTStateNew ( unsigned int  seed  ) 

AIR_EXPORT airRandMTState* airRandMTStateNix ( airRandMTState state  ) 

AIR_EXPORT int airSanity ( void   ) 

AIR_EXPORT void* airSetNull ( void **  ptrP  ) 

AIR_EXPORT int airSgn ( double   ) 

AIR_EXPORT double airSgnPow ( double  ,
double   
)

AIR_EXPORT void airShuffle ( unsigned int *  buff,
unsigned int  N,
int  perm 
)

AIR_EXPORT void airShuffle_r ( airRandMTState state,
unsigned int *  buff,
unsigned int  N,
int  perm 
)

AIR_EXPORT int airSinglePrintf ( FILE *  file,
char *  str,
const char *  fmt,
  ... 
)

AIR_EXPORT int airSingleSscanf ( const char *  str,
const char *  fmt,
void *  ptr 
)

AIR_EXPORT void airSrandMT ( unsigned int  seed  ) 

AIR_EXPORT void airSrandMT_r ( airRandMTState state,
unsigned int  seed 
)

AIR_EXPORT char* airStrdup ( const char *  s  ) 

AIR_EXPORT size_t airStrlen ( const char *  s  ) 

AIR_EXPORT unsigned int airStrntok ( const char *  s,
const char *  ct 
)

AIR_EXPORT char* airStrtok ( char *  s,
const char *  ct,
char **  last 
)

AIR_EXPORT char* airStrtrans ( char *  s,
char  from,
char  to 
)

AIR_EXPORT airThreadBarrier* airThreadBarrierNew ( unsigned  numUsers  ) 

AIR_EXPORT airThreadBarrier* airThreadBarrierNix ( airThreadBarrier barrier  ) 

AIR_EXPORT int airThreadBarrierWait ( airThreadBarrier barrier  ) 

AIR_EXPORT int airThreadCondBroadcast ( airThreadCond cond  ) 

AIR_EXPORT airThreadCond* airThreadCondNew (  ) 

AIR_EXPORT airThreadCond* airThreadCondNix ( airThreadCond cond  ) 

AIR_EXPORT int airThreadCondSignal ( airThreadCond cond  ) 

AIR_EXPORT int airThreadCondWait ( airThreadCond cond,
airThreadMutex mutex 
)

AIR_EXPORT int airThreadJoin ( airThread thread,
void **  retP 
)

AIR_EXPORT int airThreadMutexLock ( airThreadMutex mutex  ) 

AIR_EXPORT airThreadMutex* airThreadMutexNew (  ) 

AIR_EXPORT airThreadMutex* airThreadMutexNix ( airThreadMutex mutex  ) 

AIR_EXPORT int airThreadMutexUnlock ( airThreadMutex mutex  ) 

AIR_EXPORT airThread* airThreadNew ( void   ) 

AIR_EXPORT airThread* airThreadNix ( airThread thread  ) 

AIR_EXPORT int airThreadStart ( airThread thread,
void *(*)(void *)  threadBody,
void *  arg 
)

AIR_EXPORT double airTime (  ) 

AIR_EXPORT char* airToLower ( char *  str  ) 

AIR_EXPORT char* airToUpper ( char *  str  ) 

AIR_EXPORT unsigned int airUIrandMT_r ( airRandMTState state  ) 

AIR_EXPORT char* airUnescape ( char *  s  ) 


Variable Documentation

AIR_EXPORT const airEnum* const airBool

AIR_EXPORT int airDisableDio

AIR_EXPORT const airEnum* const airEndian

AIR_EXPORT const airFloat airFloatNegInf

AIR_EXPORT const airFloat airFloatPosInf

AIR_EXPORT const airFloat airFloatQNaN

AIR_EXPORT const airFloat airFloatSNaN

AIR_EXPORT const int airMy32Bit

AIR_EXPORT const int airMyDio

AIR_EXPORT const int airMyEndian

AIR_EXPORT const char airMyFmt_size_t[]

AIR_EXPORT const int airMyQNaNHiBit

AIR_EXPORT unsigned int(* airParseStr[AIR_TYPE_MAX+1])(void *, const char *, const char *, unsigned int,...)

AIR_EXPORT int airStrtokQuoting

AIR_EXPORT const char* airTeemReleaseDate

AIR_EXPORT const char* airTeemVersion

AIR_EXPORT const int airThreadCapable

AIR_EXPORT int airThreadNoopWarning

AIR_EXPORT const size_t airTypeSize[AIR_TYPE_MAX+1]

AIR_EXPORT const char airTypeStr[AIR_TYPE_MAX+1][AIR_STRLEN_SMALL]


Generated on Thu Jan 1 01:06:19 2009 for Teem by  doxygen 1.5.6