Mercurial > audlegacy
annotate Plugins/Input/aac/libfaad2/common.h @ 553:82346a6312c2 trunk
[svn] make WMA plugin strings translatable
author | nenolod |
---|---|
date | Wed, 01 Feb 2006 13:09:00 -0800 |
parents | bcc2b616017b |
children | 29feaace84d0 |
rev | line source |
---|---|
61 | 1 /* |
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
4 ** |
61 | 5 ** This program is free software; you can redistribute it and/or modify |
6 ** it under the terms of the GNU General Public License as published by | |
7 ** the Free Software Foundation; either version 2 of the License, or | |
8 ** (at your option) any later version. | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
9 ** |
61 | 10 ** This program is distributed in the hope that it will be useful, |
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 ** GNU General Public License for more details. | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
14 ** |
61 | 15 ** You should have received a copy of the GNU General Public License |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
16 ** along with this program; if not, write to the Free Software |
61 | 17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 ** | |
19 ** Any non-GPL usage of this software or parts of this software is strictly | |
20 ** forbidden. | |
21 ** | |
22 ** Commercial non-GPL licensing of this software is possible. | |
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | |
24 ** | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
25 ** $Id: common.h,v 1.65 2004/09/08 09:43:11 gcp Exp $ |
61 | 26 **/ |
27 | |
28 #ifndef __COMMON_H__ | |
29 #define __COMMON_H__ | |
30 | |
31 #ifdef __cplusplus | |
32 extern "C" { | |
33 #endif | |
34 | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
35 #ifdef HAVE_CONFIG_H |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
36 # include "config.h" |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
37 #endif |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
38 |
61 | 39 #define INLINE __inline |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
40 #if 0 //defined(_WIN32) && !defined(_WIN32_WCE) |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
41 #define ALIGN __declspec(align(16)) |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
42 #else |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
43 #define ALIGN |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
44 #endif |
61 | 45 |
46 #ifndef max | |
47 #define max(a, b) (((a) > (b)) ? (a) : (b)) | |
48 #endif | |
49 #ifndef min | |
50 #define min(a, b) (((a) < (b)) ? (a) : (b)) | |
51 #endif | |
52 | |
53 /* COMPILE TIME DEFINITIONS */ | |
54 | |
55 /* use double precision */ | |
56 /* #define USE_DOUBLE_PRECISION */ | |
57 /* use fixed point reals */ | |
58 //#define FIXED_POINT | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
59 //#define BIG_IQ_TABLE |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
60 |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
61 /* Use if target platform has address generators with autoincrement */ |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
62 //#define PREFER_POINTERS |
61 | 63 |
64 #ifdef _WIN32_WCE | |
65 #define FIXED_POINT | |
66 #endif | |
67 | |
68 | |
69 #define ERROR_RESILIENCE | |
70 | |
71 | |
72 /* Allow decoding of MAIN profile AAC */ | |
73 #define MAIN_DEC | |
74 /* Allow decoding of SSR profile AAC */ | |
75 //#define SSR_DEC | |
76 /* Allow decoding of LTP profile AAC */ | |
77 #define LTP_DEC | |
78 /* Allow decoding of LD profile AAC */ | |
79 #define LD_DEC | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
80 /* Allow decoding of scalable profiles */ |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
81 //#define SCALABLE_DEC |
61 | 82 /* Allow decoding of Digital Radio Mondiale (DRM) */ |
83 //#define DRM | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
84 //#define DRM_PS |
61 | 85 |
86 /* LD can't do without LTP */ | |
87 #ifdef LD_DEC | |
88 #ifndef ERROR_RESILIENCE | |
89 #define ERROR_RESILIENCE | |
90 #endif | |
91 #ifndef LTP_DEC | |
92 #define LTP_DEC | |
93 #endif | |
94 #endif | |
95 | |
96 #define ALLOW_SMALL_FRAMELENGTH | |
97 | |
98 | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
99 // Define LC_ONLY_DECODER if you want a pure AAC LC decoder (independant of SBR_DEC and PS_DEC) |
61 | 100 //#define LC_ONLY_DECODER |
101 #ifdef LC_ONLY_DECODER | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
102 #undef LD_DEC |
61 | 103 #undef LTP_DEC |
104 #undef MAIN_DEC | |
105 #undef SSR_DEC | |
106 #undef DRM | |
107 #undef ALLOW_SMALL_FRAMELENGTH | |
108 #undef ERROR_RESILIENCE | |
109 #endif | |
110 | |
111 #define SBR_DEC | |
112 //#define SBR_LOW_POWER | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
113 #define PS_DEC |
61 | 114 |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
115 /* FIXED POINT: No MAIN decoding */ |
61 | 116 #ifdef FIXED_POINT |
117 # ifdef MAIN_DEC | |
118 # undef MAIN_DEC | |
119 # endif | |
120 #endif // FIXED_POINT | |
121 | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
122 #ifdef DRM |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
123 # ifndef SCALABLE_DEC |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
124 # define SCALABLE_DEC |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
125 # endif |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
126 #endif |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
127 |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
128 |
61 | 129 #ifdef FIXED_POINT |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
130 #define DIV_R(A, B) (((int64_t)A << REAL_BITS)/B) |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
131 #define DIV_C(A, B) (((int64_t)A << COEF_BITS)/B) |
61 | 132 #else |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
133 #define DIV_R(A, B) ((A)/(B)) |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
134 #define DIV_C(A, B) ((A)/(B)) |
61 | 135 #endif |
136 | |
137 #ifndef SBR_LOW_POWER | |
138 #define qmf_t complex_t | |
139 #define QMF_RE(A) RE(A) | |
140 #define QMF_IM(A) IM(A) | |
141 #else | |
142 #define qmf_t real_t | |
143 #define QMF_RE(A) (A) | |
144 #define QMF_IM(A) | |
145 #endif | |
146 | |
147 | |
148 /* END COMPILE TIME DEFINITIONS */ | |
149 | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
150 #if defined(_WIN32) && !defined(__MINGW32__) |
61 | 151 |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
152 #include <stdlib.h> |
61 | 153 |
154 typedef unsigned __int64 uint64_t; | |
155 typedef unsigned __int32 uint32_t; | |
156 typedef unsigned __int16 uint16_t; | |
157 typedef unsigned __int8 uint8_t; | |
158 typedef __int64 int64_t; | |
159 typedef __int32 int32_t; | |
160 typedef __int16 int16_t; | |
161 typedef __int8 int8_t; | |
162 typedef float float32_t; | |
163 | |
164 | |
165 #else | |
166 | |
167 #include <stdio.h> | |
168 #if HAVE_SYS_TYPES_H | |
169 # include <sys/types.h> | |
170 #endif | |
171 #if HAVE_SYS_STAT_H | |
172 # include <sys/stat.h> | |
173 #endif | |
174 #if STDC_HEADERS | |
175 # include <stdlib.h> | |
176 # include <stddef.h> | |
177 #else | |
178 # if HAVE_STDLIB_H | |
179 # include <stdlib.h> | |
180 # endif | |
181 #endif | |
182 #if HAVE_STRING_H | |
183 # if !STDC_HEADERS && HAVE_MEMORY_H | |
184 # include <memory.h> | |
185 # endif | |
186 # include <string.h> | |
187 #endif | |
188 #if HAVE_STRINGS_H | |
189 # include <strings.h> | |
190 #endif | |
191 #if HAVE_INTTYPES_H | |
192 # include <inttypes.h> | |
193 #else | |
194 # if HAVE_STDINT_H | |
195 # include <stdint.h> | |
196 # else | |
197 /* we need these... */ | |
198 typedef unsigned long long uint64_t; | |
199 typedef unsigned long uint32_t; | |
200 typedef unsigned short uint16_t; | |
201 typedef unsigned char uint8_t; | |
202 typedef long long int64_t; | |
203 typedef long int32_t; | |
204 typedef short int16_t; | |
205 typedef char int8_t; | |
206 # endif | |
207 #endif | |
208 #if HAVE_UNISTD_H | |
209 # include <unistd.h> | |
210 #endif | |
211 | |
212 #ifndef HAVE_FLOAT32_T | |
213 typedef float float32_t; | |
214 #endif | |
215 | |
216 #if STDC_HEADERS | |
217 # include <string.h> | |
218 #else | |
219 # if !HAVE_STRCHR | |
220 # define strchr index | |
221 # define strrchr rindex | |
222 # endif | |
223 char *strchr(), *strrchr(); | |
224 # if !HAVE_MEMCPY | |
225 # define memcpy(d, s, n) bcopy((s), (d), (n)) | |
226 # define memmove(d, s, n) bcopy((s), (d), (n)) | |
227 # endif | |
228 #endif | |
229 | |
230 #endif | |
231 | |
232 #ifdef WORDS_BIGENDIAN | |
233 #define ARCH_IS_BIG_ENDIAN | |
234 #endif | |
235 | |
236 /* FIXED_POINT doesn't work with MAIN and SSR yet */ | |
237 #ifdef FIXED_POINT | |
238 #undef MAIN_DEC | |
239 #undef SSR_DEC | |
240 #endif | |
241 | |
242 | |
243 #if defined(FIXED_POINT) | |
244 | |
245 #include "fixed.h" | |
246 | |
247 #elif defined(USE_DOUBLE_PRECISION) | |
248 | |
249 typedef double real_t; | |
250 | |
251 #include <math.h> | |
252 | |
253 #define MUL_R(A,B) ((A)*(B)) | |
254 #define MUL_C(A,B) ((A)*(B)) | |
255 #define MUL_F(A,B) ((A)*(B)) | |
256 | |
257 /* Complex multiplication */ | |
258 static INLINE void ComplexMult(real_t *y1, real_t *y2, | |
259 real_t x1, real_t x2, real_t c1, real_t c2) | |
260 { | |
261 *y1 = MUL_F(x1, c1) + MUL_F(x2, c2); | |
262 *y2 = MUL_F(x2, c1) - MUL_F(x1, c2); | |
263 } | |
264 | |
265 #define REAL_CONST(A) ((real_t)(A)) | |
266 #define COEF_CONST(A) ((real_t)(A)) | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
267 #define Q2_CONST(A) ((real_t)(A)) |
61 | 268 #define FRAC_CONST(A) ((real_t)(A)) /* pure fractional part */ |
269 | |
270 #else /* Normal floating point operation */ | |
271 | |
272 typedef float real_t; | |
273 | |
274 #define MUL_R(A,B) ((A)*(B)) | |
275 #define MUL_C(A,B) ((A)*(B)) | |
276 #define MUL_F(A,B) ((A)*(B)) | |
277 | |
278 #define REAL_CONST(A) ((real_t)(A)) | |
279 #define COEF_CONST(A) ((real_t)(A)) | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
280 #define Q2_CONST(A) ((real_t)(A)) |
61 | 281 #define FRAC_CONST(A) ((real_t)(A)) /* pure fractional part */ |
282 | |
283 /* Complex multiplication */ | |
284 static INLINE void ComplexMult(real_t *y1, real_t *y2, | |
285 real_t x1, real_t x2, real_t c1, real_t c2) | |
286 { | |
287 *y1 = MUL_F(x1, c1) + MUL_F(x2, c2); | |
288 *y2 = MUL_F(x2, c1) - MUL_F(x1, c2); | |
289 } | |
290 | |
291 | |
292 #ifdef __ICL /* only Intel C compiler has fmath ??? */ | |
293 | |
294 #include <mathf.h> | |
295 | |
296 #define sin sinf | |
297 #define cos cosf | |
298 #define log logf | |
299 #define floor floorf | |
300 #define ceil ceilf | |
301 #define sqrt sqrtf | |
302 | |
303 #else | |
304 | |
305 #ifdef HAVE_LRINTF | |
306 # define HAS_LRINTF | |
307 # define _ISOC9X_SOURCE 1 | |
308 # define _ISOC99_SOURCE 1 | |
309 # define __USE_ISOC9X 1 | |
310 # define __USE_ISOC99 1 | |
311 #endif | |
312 | |
313 #include <math.h> | |
314 | |
315 #ifdef HAVE_SINF | |
316 # define sin sinf | |
317 #error | |
318 #endif | |
319 #ifdef HAVE_COSF | |
320 # define cos cosf | |
321 #endif | |
322 #ifdef HAVE_LOGF | |
323 # define log logf | |
324 #endif | |
325 #ifdef HAVE_EXPF | |
326 # define exp expf | |
327 #endif | |
328 #ifdef HAVE_FLOORF | |
329 # define floor floorf | |
330 #endif | |
331 #ifdef HAVE_CEILF | |
332 # define ceil ceilf | |
333 #endif | |
334 #ifdef HAVE_SQRTF | |
335 # define sqrt sqrtf | |
336 #endif | |
337 | |
338 #endif | |
339 | |
340 #endif | |
341 | |
342 #ifndef HAS_LRINTF | |
343 /* standard cast */ | |
344 #define lrintf(f) ((int32_t)(f)) | |
345 #endif | |
346 | |
347 typedef real_t complex_t[2]; | |
348 #define RE(A) A[0] | |
349 #define IM(A) A[1] | |
350 | |
351 | |
352 /* common functions */ | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
353 uint8_t cpu_has_sse(void); |
61 | 354 uint32_t random_int(void); |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
355 uint32_t ones32(uint32_t x); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
356 uint32_t floor_log2(uint32_t x); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
357 uint32_t wl_min_lzc(uint32_t x); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
358 #ifdef FIXED_POINT |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
359 #define LOG2_MIN_INF REAL_CONST(-10000) |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
360 int32_t log2_int(uint32_t val); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
361 int32_t log2_fix(uint32_t val); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
362 int32_t pow2_int(real_t val); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
363 real_t pow2_fix(real_t val); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
364 #endif |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
365 uint8_t get_sr_index(const uint32_t samplerate); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
366 uint8_t max_pred_sfb(const uint8_t sr_index); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
367 uint8_t max_tns_sfb(const uint8_t sr_index, const uint8_t object_type, |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
368 const uint8_t is_short); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
369 uint32_t get_sample_rate(const uint8_t sr_index); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
370 int8_t can_decode_ot(const uint8_t object_type); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
371 |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
372 void *faad_malloc(size_t size); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
373 void faad_free(void *b); |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
374 |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
375 //#define PROFILE |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
376 #ifdef PROFILE |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
377 static int64_t faad_get_ts() |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
378 { |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
379 __asm |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
380 { |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
381 rdtsc |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
382 } |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
383 } |
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
384 #endif |
61 | 385 |
386 #ifndef M_PI | |
199
0a2ad94e8607
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
chainsaw
parents:
65
diff
changeset
|
387 #define M_PI 3.14159265358979323846 |
61 | 388 #endif |
389 #ifndef M_PI_2 /* PI/2 */ | |
390 #define M_PI_2 1.57079632679489661923 | |
391 #endif | |
392 | |
393 | |
394 #ifdef __cplusplus | |
395 } | |
396 #endif | |
397 #endif |