Ticket #3169: PowerPC_NoAltivec.patch

File PowerPC_NoAltivec.patch, 738 bytes (added by Eric.Pheatt@…, 14 years ago)
  • libs/libmythmpeg2/cpu_state.c

     
    4343}
    4444#endif
    4545
    46 #ifdef ARCH_PPC
     46#ifdef HAVE_ALTIVEC
    4747#if defined(HAVE_ALTIVEC_H) && !defined(CONFIG_DARWIN) /* gnu */
    4848#define LI(a,b) "li " #a "," #b "\n\t"
    4949#define STVX0(a,b,c) "stvx " #a ",0," #c "\n\t"
     
    120120       mpeg2_cpu_state_restore = state_restore_mmx;
    121121    }
    122122#endif
    123 #ifdef ARCH_PPC
     123#ifdef HAVE_ALTIVEC
    124124    if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
    125125       mpeg2_cpu_state_save = state_save_altivec;
    126126       mpeg2_cpu_state_restore = state_restore_altivec;