Mercurial > mplayer.hg
comparison libmpeg2/idct.c @ 26625:5b89b42f6d50
Only compile and use libmpeg2 AltiVec code when AltiVec is available. The
AltiVec code needs -maltivec to compile, but then AltiVec instructions
appear in other places of the code causing MPlayer to sigill.
Somehow upstream libmpeg2 manages not to sigill under what appear to be
the same circumstances. Enlightenment welcome.
author | diego |
---|---|
date | Sat, 03 May 2008 15:23:22 +0000 |
parents | d791659dd245 |
children | 1462a44ea6b9 |
comparison
equal
deleted
inserted
replaced
26624:b21222573964 | 26625:5b89b42f6d50 |
---|---|
17 * GNU General Public License for more details. | 17 * GNU General Public License for more details. |
18 * | 18 * |
19 * You should have received a copy of the GNU General Public License | 19 * You should have received a copy of the GNU General Public License |
20 * along with this program; if not, write to the Free Software | 20 * along with this program; if not, write to the Free Software |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 * | |
23 * Modified for use with MPlayer, see libmpeg-0.4.1.diff for the exact changes. | |
24 * detailed changelog at http://svn.mplayerhq.hu/mplayer/trunk/ | |
25 * $Id$ | |
22 */ | 26 */ |
23 | 27 |
24 #include "config.h" | 28 #include "config.h" |
25 | 29 |
26 #include <stdlib.h> | 30 #include <stdlib.h> |
248 mpeg2_idct_copy = mpeg2_idct_copy_mmx; | 252 mpeg2_idct_copy = mpeg2_idct_copy_mmx; |
249 mpeg2_idct_add = mpeg2_idct_add_mmx; | 253 mpeg2_idct_add = mpeg2_idct_add_mmx; |
250 mpeg2_idct_mmx_init (); | 254 mpeg2_idct_mmx_init (); |
251 } else | 255 } else |
252 #endif | 256 #endif |
253 #ifdef ARCH_PPC | 257 #ifdef HAVE_ALTIVEC |
254 if (accel & MPEG2_ACCEL_PPC_ALTIVEC) { | 258 if (accel & MPEG2_ACCEL_PPC_ALTIVEC) { |
255 mpeg2_idct_copy = mpeg2_idct_copy_altivec; | 259 mpeg2_idct_copy = mpeg2_idct_copy_altivec; |
256 mpeg2_idct_add = mpeg2_idct_add_altivec; | 260 mpeg2_idct_add = mpeg2_idct_add_altivec; |
257 mpeg2_idct_altivec_init (); | 261 mpeg2_idct_altivec_init (); |
258 } else | 262 } else |