comparison postprocess.c @ 93:7c86da6ce78e libpostproc

Remove redundant ARCH_POWERPC #ifdef around HAVE_ALTIVEC.
author diego
date Tue, 18 Mar 2008 22:14:41 +0000
parents 8e738e0a16f5
children c24dab9bca80
comparison
equal deleted inserted replaced
92:a8ed701a0873 93:7c86da6ce78e
565 //Plain C versions 565 //Plain C versions
566 #if !defined (HAVE_MMX) || defined (RUNTIME_CPUDETECT) 566 #if !defined (HAVE_MMX) || defined (RUNTIME_CPUDETECT)
567 #define COMPILE_C 567 #define COMPILE_C
568 #endif 568 #endif
569 569
570 #ifdef ARCH_POWERPC
571 #ifdef HAVE_ALTIVEC 570 #ifdef HAVE_ALTIVEC
572 #define COMPILE_ALTIVEC 571 #define COMPILE_ALTIVEC
573 #endif //HAVE_ALTIVEC 572 #endif //HAVE_ALTIVEC
574 #endif //ARCH_POWERPC
575 573
576 #if defined(ARCH_X86) 574 #if defined(ARCH_X86)
577 575
578 #if (defined (HAVE_MMX) && !defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT) 576 #if (defined (HAVE_MMX) && !defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT)
579 #define COMPILE_MMX 577 #define COMPILE_MMX
599 #undef HAVE_3DNOW 597 #undef HAVE_3DNOW
600 #define RENAME(a) a ## _C 598 #define RENAME(a) a ## _C
601 #include "postprocess_template.c" 599 #include "postprocess_template.c"
602 #endif 600 #endif
603 601
604 #ifdef ARCH_POWERPC
605 #ifdef COMPILE_ALTIVEC 602 #ifdef COMPILE_ALTIVEC
606 #undef RENAME 603 #undef RENAME
607 #define HAVE_ALTIVEC 604 #define HAVE_ALTIVEC
608 #define RENAME(a) a ## _altivec 605 #define RENAME(a) a ## _altivec
609 #include "postprocess_altivec_template.c" 606 #include "postprocess_altivec_template.c"
610 #include "postprocess_template.c" 607 #include "postprocess_template.c"
611 #endif 608 #endif
612 #endif //ARCH_POWERPC
613 609
614 //MMX versions 610 //MMX versions
615 #ifdef COMPILE_MMX 611 #ifdef COMPILE_MMX
616 #undef RENAME 612 #undef RENAME
617 #define HAVE_MMX 613 #define HAVE_MMX
663 else if(c->cpuCaps & PP_CPU_CAPS_MMX) 659 else if(c->cpuCaps & PP_CPU_CAPS_MMX)
664 postProcess_MMX(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c); 660 postProcess_MMX(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
665 else 661 else
666 postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c); 662 postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
667 #else 663 #else
668 #ifdef ARCH_POWERPC
669 #ifdef HAVE_ALTIVEC 664 #ifdef HAVE_ALTIVEC
670 if(c->cpuCaps & PP_CPU_CAPS_ALTIVEC) 665 if(c->cpuCaps & PP_CPU_CAPS_ALTIVEC)
671 postProcess_altivec(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c); 666 postProcess_altivec(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
672 else 667 else
673 #endif
674 #endif 668 #endif
675 postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c); 669 postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
676 #endif 670 #endif
677 #else //RUNTIME_CPUDETECT 671 #else //RUNTIME_CPUDETECT
678 #ifdef HAVE_MMX2 672 #ifdef HAVE_MMX2