disable_altivec.patch 1.0 KB

123456789101112131415161718192021222324252627282930
  1. diff -Nur libvisual-0.4.0-old/libvisual/lv_cpu.c libvisual-0.4.0/libvisual/lv_cpu.c
  2. --- libvisual-0.4.0-old/libvisual/lv_cpu.c 2008-06-16 04:58:57.000000000 +0300
  3. +++ libvisual-0.4.0/libvisual/lv_cpu.c 2008-06-16 04:59:32.000000000 +0300
  4. @@ -76,7 +76,7 @@
  5. /* The sigill handlers */
  6. #if defined(VISUAL_ARCH_X86) //x86 (linux katmai handler check thing)
  7. -#if defined(VISUAL_OS_LINUX) && defined(_POSIX_SOURCE) && defined(X86_FXSR_MAGIC)
  8. +#if defined(VISUAL_OS_LINUX) && defined(_POSIX_SOURCE)
  9. static void sigill_handler_sse( int signal, struct sigcontext sc )
  10. {
  11. /* Both the "xorps %%xmm0,%%xmm0" and "divps %xmm0,%%xmm1"
  12. @@ -109,7 +109,7 @@
  13. }
  14. }
  15. #endif
  16. -#endif /* VISUAL_OS_LINUX && _POSIX_SOURCE && X86_FXSR_MAGIC */
  17. +#endif /* VISUAL_OS_LINUX && _POSIX_SOURCE */
  18. #if defined(VISUAL_OS_WIN32)
  19. LONG CALLBACK win32_sig_handler_sse(EXCEPTION_POINTERS* ep)
  20. @@ -143,6 +143,7 @@
  21. static void check_os_altivec_support( void )
  22. {
  23. + return;
  24. #if defined(VISUAL_OS_DARWIN)
  25. int sels[2] = {CTL_HW, HW_VECTORUNIT};
  26. int has_vu = 0;