/* A few macros and typedef*/
 
#ifndef __GLDUTIL_H
#define __GLDUTIL_H
 
/*#include <math.h>*/
 
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifdef GLI_D3D
  #ifdef _DEBUG
#define PARAM_LOCK DDLOCK_NOSYSLOCK
  #else
#define PARAM_LOCK 0
  #endif
#else
#define PARAM_LOCK 0
#endif
 
 
typedef float GLD_tdxValue ;
#define GLD_M_LongToValue(A)    ( (GLD_tdxValue) ( A ) )
 
#define GLD_M_Mul(A,B)          (GLD_tdxValue)( ( A ) * ( B ) )
#define GLD_M_Sub(A,B)          (GLD_tdxValue)( ( A ) - ( B ) )
#define GLD_M_Add(A,B)          (GLD_tdxValue)( ( A ) + ( B ) )
#define GLD_M_Div(A,B)          (GLD_tdxValue)( ( A ) / ( B ) )
#define GLD_M_Neg(A)            ( -( A ) )
 
 
#ifdef __cplusplus
};
#endif /* __cplusplus */
 
#endif /* __GLDUTIL_H*/
