43 #ifndef __TIED_MGAU_COMMON_H__ 44 #define __TIED_MGAU_COMMON_H__ 46 #include <sphinxbase/logmath.h> 47 #include <sphinxbase/fixpoint.h> 49 #define MGAU_MIXW_VERSION "1.0" 50 #define MGAU_PARAM_VERSION "1.0" 52 #define WORST_DIST (int32)(0x80000000) 57 (((a)-(b) > a) ? (INT_MIN) : ((a)-(b))) 60 (((a)+(b) < a) ? (INT_MAX) : ((a)+(b))) 62 #define GMMSUB(a,b) ((a)-(b)) 63 #define GMMADD(a,b) ((a)+(b)) 67 #define MIN(a,b) ((a) < (b) ? (a) : (b)) 71 #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) 72 #define LOGMATH_INLINE static inline 73 #elif defined(_MSC_VER) 74 #define LOGMATH_INLINE __inline 76 #define LOGMATH_INLINE static 82 #define MAX_NEG_MIXW 159 83 #define MAX_NEG_ASCR 96 105 logadd_t *t = LOGMATH_TABLE(lmath);
118 return r - (((uint8 *)t->table)[d]);
LOGMATH_INLINE int fast_logmath_add(logmath_t *lmath, int mlx, int mly)
Quickly log-add two negated log probabilities.