Mercurial > mplayer.hg
comparison liba52/resample_mmx.c @ 28290:25337a2147e7
Lots and lots of #ifdef ARCH_... -> #if ARCH_...
and #ifdef HAVE_MMX etc -> #if HAVE_MMX.
There might be still more that need to be fixed.
author | reimar |
---|---|
date | Fri, 16 Jan 2009 09:21:21 +0000 |
parents | 08d18fe9da52 |
children |
comparison
equal
deleted
inserted
replaced
28289:4210f3621db1 | 28290:25337a2147e7 |
---|---|
74 } | 74 } |
75 | 75 |
76 static int a52_resample_STEREO_to_2_MMX(float * _f, int16_t * s16){ | 76 static int a52_resample_STEREO_to_2_MMX(float * _f, int16_t * s16){ |
77 int32_t * f = (int32_t *) _f; | 77 int32_t * f = (int32_t *) _f; |
78 /* benchmark scores are 0.3% better with SSE but we would need to set bias=0 and premultiply it | 78 /* benchmark scores are 0.3% better with SSE but we would need to set bias=0 and premultiply it |
79 #ifdef HAVE_SSE | 79 #if HAVE_SSE |
80 __asm__ volatile( | 80 __asm__ volatile( |
81 "mov $-1024, %%"REG_S" \n\t" | 81 "mov $-1024, %%"REG_S" \n\t" |
82 "1: \n\t" | 82 "1: \n\t" |
83 "cvtps2pi (%1, %%"REG_S"), %%mm0\n\t" | 83 "cvtps2pi (%1, %%"REG_S"), %%mm0\n\t" |
84 "cvtps2pi 1024(%1, %%"REG_S"), %%mm2\n\t" | 84 "cvtps2pi 1024(%1, %%"REG_S"), %%mm2\n\t" |