Commit 8fb3f287 authored by Michel Lespinasse's avatar Michel Lespinasse
Browse files

A few altivec-related changes so that libmpeg2 actually builds :)

The current status is that libmpeg2 successfully passes the test
suite, but you still need an altivec-enabled gcc just because the
assembly translation of the idct uses external symbols _savev23,
_restv23, _savev24 and _restv24 which I believe are defined in libgcc.
parent 0661168b
......@@ -40,7 +40,9 @@ if test x"$GCC" = x"yes"; then
esac
AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
ppc-* | powerpc-*)
AC_DEFINE([ARCH_PPC],,[ppc architecture]);;
AC_DEFINE([ARCH_PPC],,[ppc architecture])
OPT_CFLAGS="$CFLAGS -Wa,-m7400"
AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
sparc-*)
OPT_CFLAGS="$CFLAGS -mcpu=ultrasparc -mvis"
AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
......
......@@ -663,7 +663,7 @@ asm (" \n"
#endif
void idct_mmx_init (void)
void idct_altivec_init (void)
{
extern uint8_t scan_norm[64];
extern uint8_t scan_alt[64];
......
......@@ -167,6 +167,7 @@ void idct_mmx_init (void);
/* idct_altivec.c */
void idct_block_copy_altivec (int16_t * block, uint8_t * dest, int stride);
void idct_block_add_altivec (int16_t * block, uint8_t * dest, int stride);
void idct_altivec_init (void);
/* motion_comp.c */
void motion_comp_init (void);
......
......@@ -118,7 +118,7 @@ static RETSIGTYPE sigill_handler (int sig)
}
canjump = 0;
siglongjump (jmpbuf, 1);
siglongjmp (jmpbuf, 1);
}
static uint32_t arch_accel (void)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment