Changeset 628 for pjproject/trunk/pjmedia/src/pjmedia-codec/speex/arch.h
- Timestamp:
- Jul 26, 2006 5:04:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/speex/arch.h
r278 r628 42 42 #define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ 43 43 #define ABS32(x) ((x) < 0 ? (-(x)) : (x)) /**< Absolute 32-bit value. */ 44 #define MAX32(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 32-bit value. */ 44 45 45 46 #ifdef FIXED_POINT … … 47 48 typedef spx_int16_t spx_word16_t; 48 49 typedef spx_int32_t spx_word32_t; 49 #ifdef _MSC_VER50 typedef __int64 spx_word64_t;51 #elif defined NO_LONGLONG52 typedef double spx_word64_t;53 #else54 typedef long long spx_word64_t;55 #endif56 50 typedef spx_word32_t spx_mem_t; 57 51 typedef spx_word16_t spx_coef_t; … … 104 98 typedef float spx_word16_t; 105 99 typedef float spx_word32_t; 106 typedef float spx_word64_t;107 100 108 101 #define Q15ONE 1.0f … … 147 140 #define ADD32(a,b) ((a)+(b)) 148 141 #define SUB32(a,b) ((a)-(b)) 149 #define ADD64(a,b) ((a)+(b))150 142 #define MULT16_16_16(a,b) ((a)*(b)) 151 143 #define MULT16_16(a,b) ((spx_word32_t)(a)*(spx_word32_t)(b)) … … 162 154 #define MAC16_16_Q11(c,a,b) ((c)+(a)*(b)) 163 155 #define MAC16_16_Q13(c,a,b) ((c)+(a)*(b)) 156 #define MAC16_16_P13(c,a,b) ((c)+(a)*(b)) 164 157 #define MULT16_16_Q11_32(a,b) ((a)*(b)) 165 158 #define MULT16_16_Q13(a,b) ((a)*(b)) … … 167 160 #define MULT16_16_Q15(a,b) ((a)*(b)) 168 161 #define MULT16_16_P15(a,b) ((a)*(b)) 162 #define MULT16_16_P13(a,b) ((a)*(b)) 163 #define MULT16_16_P14(a,b) ((a)*(b)) 169 164 170 #define DIV32_16(a,b) ((a)/(b)) 171 #define DIV32(a,b) ((a)/(b)) 165 #define DIV32_16(a,b) (((spx_word32_t)(a))/(spx_word16_t)(b)) 166 #define PDIV32_16(a,b) (((spx_word32_t)(a))/(spx_word16_t)(b)) 167 #define DIV32(a,b) (((spx_word32_t)(a))/(spx_word32_t)(b)) 168 #define PDIV32(a,b) (((spx_word32_t)(a))/(spx_word32_t)(b)) 172 169 173 170 … … 175 172 176 173 177 #if def CONFIG_TI_C55X174 #if defined (CONFIG_TI_C54X) || defined (CONFIG_TI_C55X) 178 175 179 176 /* 2 on TI C5x DSP */
Note: See TracChangeset
for help on using the changeset viewer.