Mercurial > audlegacy
comparison Plugins/Input/aac/libfaad2/common.h @ 204:bcc2b616017b trunk
[svn] Fucking nero idiots suck...
author | nenolod |
---|---|
date | Thu, 17 Nov 2005 21:45:35 -0800 |
parents | 0a2ad94e8607 |
children | 29feaace84d0 |
comparison
equal
deleted
inserted
replaced
203:f0f81a26b850 | 204:bcc2b616017b |
---|---|
287 *y1 = MUL_F(x1, c1) + MUL_F(x2, c2); | 287 *y1 = MUL_F(x1, c1) + MUL_F(x2, c2); |
288 *y2 = MUL_F(x2, c1) - MUL_F(x1, c2); | 288 *y2 = MUL_F(x2, c1) - MUL_F(x1, c2); |
289 } | 289 } |
290 | 290 |
291 | 291 |
292 #if defined(_WIN32) && !defined(__MINGW32__) | |
293 #define HAS_LRINTF | |
294 static INLINE int lrintf(float f) | |
295 { | |
296 int i; | |
297 __asm | |
298 { | |
299 fld f | |
300 fistp i | |
301 } | |
302 return i; | |
303 } | |
304 #elif (defined(__i386__) && defined(__GNUC__)) | |
305 #define HAS_LRINTF | |
306 // from http://www.stereopsis.com/FPU.html | |
307 static INLINE int lrintf(float f) | |
308 { | |
309 int i; | |
310 __asm__ __volatile__ ( | |
311 "flds %1 \n\t" | |
312 "fistpl %0 \n\t" | |
313 : "=m" (i) | |
314 : "m" (f)); | |
315 return i; | |
316 } | |
317 #endif | |
318 | |
319 | |
320 #ifdef __ICL /* only Intel C compiler has fmath ??? */ | 292 #ifdef __ICL /* only Intel C compiler has fmath ??? */ |
321 | 293 |
322 #include <mathf.h> | 294 #include <mathf.h> |
323 | 295 |
324 #define sin sinf | 296 #define sin sinf |