Changeset 6129 for pjproject/trunk/third_party/speex/libspeex/arch.h
- Timestamp:
- Jan 9, 2020 9:05:50 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/speex/libspeex/arch.h
r2002 r6129 8 8 modification, are permitted provided that the following conditions 9 9 are met: 10 10 11 11 - Redistributions of source code must retain the above copyright 12 12 notice, this list of conditions and the following disclaimer. 13 13 14 14 - Redistributions in binary form must reproduce the above copyright 15 15 notice, this list of conditions and the following disclaimer in the 16 16 documentation and/or other materials provided with the distribution. 17 17 18 18 - Neither the name of the Xiph.org Foundation nor the names of its 19 19 contributors may be used to endorse or promote products derived from 20 20 this software without specific prior written permission. 21 21 22 22 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 23 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT … … 50 50 #error You cannot compile as floating point and fixed point at the same time 51 51 #endif 52 #ifdef _USE_SSE52 #ifdef USE_SSE 53 53 #error SSE is only for floating-point 54 54 #endif … … 76 76 77 77 #ifndef OUTSIDE_SPEEX 78 #include "speex/speex _types.h"78 #include "speex/speexdsp_types.h" 79 79 #endif 80 80 … … 90 90 91 91 typedef spx_int16_t spx_word16_t; 92 typedef spx_int32_t 92 typedef spx_int32_t spx_word32_t; 93 93 typedef spx_word32_t spx_mem_t; 94 94 typedef spx_word16_t spx_coef_t; … … 109 109 #define SIG_SHIFT 14 110 110 #define GAIN_SHIFT 6 111 112 #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) 111 113 112 114 #define VERY_SMALL 0 … … 172 174 #define SATURATE16(x,a) (x) 173 175 #define SATURATE32(x,a) (x) 176 #define SATURATE32PSHR(x,shift,a) (x) 174 177 175 178 #define PSHR(a,shift) (a) … … 211 214 #define PDIV32(a,b) (((spx_word32_t)(a))/(spx_word32_t)(b)) 212 215 213 216 #define WORD2INT(x) ((x) < -32767.5f ? -32768 : \ 217 ((x) > 32766.5f ? 32767 : (spx_int16_t)floor(.5 + (x)))) 214 218 #endif 215 219 … … 218 222 219 223 /* 2 on TI C5x DSP */ 220 #define BYTES_PER_CHAR 2 224 #define BYTES_PER_CHAR 2 221 225 #define BITS_PER_CHAR 16 222 226 #define LOG2_BITS_PER_CHAR 4 223 227 224 #else 228 #else 225 229 226 230 #define BYTES_PER_CHAR 1
Note: See TracChangeset
for help on using the changeset viewer.