1 --- MPlayer-1.0pre2/libavcodec/alpha/mpegvideo_alpha.c.orig 2003-10-05 18:12:00.000000000 +0200
2 +++ MPlayer-1.0pre2/libavcodec/alpha/mpegvideo_alpha.c 2003-11-23 00:01:14.955663712 +0100
5 DCTELEM *orig_block = block;
9 qadd = WORD_VEC((qscale - 1) | 1);
12 n_coeffs = s->intra_scantable.raster_end[s->block_last_index[n]];
15 +#ifdef RUNTIME_CPUDETECT
16 + use_mvi = (amask(AMASK_MVI) == 0);
20 for(i = 0; i <= n_coeffs; block += 4, i += 4) {
21 uint64_t levels, negmask, zeros, add;
25 /* I don't think the speed difference justifies runtime
27 + /* but - you cannot use MVI if building with runtime detection
28 + * and at runtime CPU doesn't support it */
30 negmask = maxsw4(levels, -1); /* negative -> ffff (-1) */
31 negmask = minsw4(negmask, 0); /* positive -> 0000 (0) */
36 negmask = cmpbge(WORD_VEC(0x7fff), levels);
37 negmask &= (negmask >> 1) | (1 << 7);
38 negmask = zap(-1, negmask);
42 zeros = cmpbge(0, levels);
44 --- MPlayer-1.0pre2/configure.orig 2003-10-05 17:34:40.000000000 +0200
45 +++ MPlayer-1.0pre2/configure 2003-11-23 00:09:38.111172448 +0100
50 + if test "$host_arch" = "alpha" -a "$_cc_major" -ge "3"; then
51 + _def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1"
53 + _def_gcc_mvi_support="#undef CAN_COMPILE_ALPHA_MVI"
57 if x86 && test "$_runtime_cpudetection" = no ; then