Mercurial > mplayer.hg
comparison mp3lib/decod386.c @ 23342:e070d7f61e9a
Rewrite generic code in decode_MMX.c in C for easier AMD64 port. Slightly faster than original assembly.
author | zuxy |
---|---|
date | Mon, 21 May 2007 01:47:27 +0000 |
parents | 0db8fb3cc48d |
children | 73656c3dd7f9 |
comparison
equal
deleted
inserted
replaced
23341:74f5109611e2 | 23342:e070d7f61e9a |
---|---|
122 } | 122 } |
123 | 123 |
124 static synth_func_t synth_func; | 124 static synth_func_t synth_func; |
125 | 125 |
126 #if defined(CAN_COMPILE_X86_ASM) && defined(HAVE_MMX) | 126 #if defined(CAN_COMPILE_X86_ASM) && defined(HAVE_MMX) |
127 int synth_1to1_MMX( real *bandPtr,int channel,short * samples) | 127 extern int synth_1to1_MMX( real *bandPtr,int channel,short * samples); |
128 { | |
129 static short buffs[2][2][0x110]; | |
130 static int bo = 1; | |
131 synth_1to1_MMX_s(bandPtr, channel, samples, (short *) buffs, &bo); | |
132 return 0; | |
133 } | |
134 #endif | 128 #endif |
135 | 129 |
136 #ifdef HAVE_ALTIVEC | 130 #ifdef HAVE_ALTIVEC |
137 #define dct64_base(a,b,c) if(gCpuCaps.hasAltiVec) dct64_altivec(a,b,c); else dct64(a,b,c) | 131 #define dct64_base(a,b,c) if(gCpuCaps.hasAltiVec) dct64_altivec(a,b,c); else dct64(a,b,c) |
138 #else /* HAVE_ALTIVEC */ | 132 #else /* HAVE_ALTIVEC */ |