Fix building on non-x86 systems
authorPetri Hintukainen <phintuka@users.sourceforge.net>
Sun, 10 Jun 2012 09:45:02 +0300
changeset 12172b0df4b6003ad
parent 12171 52a99e60c2c9
child 12176 2e285ce4af9f
Fix building on non-x86 systems
src/post/deinterlace/plugins/greedy2frame_template.c
src/post/deinterlace/plugins/greedy2frame_template_sse2.c
     1.1 --- a/src/post/deinterlace/plugins/greedy2frame_template.c	Sat Jun 09 18:58:05 2012 +0100
     1.2 +++ b/src/post/deinterlace/plugins/greedy2frame_template.c	Sun Jun 10 09:45:02 2012 +0300
     1.3 @@ -85,6 +85,7 @@
     1.4  */
     1.5  
     1.6  
     1.7 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
     1.8  #if !defined(MASKS_DEFINED)
     1.9  #define MASKS_DEFINED
    1.10  static const mmx_t Mask = { uq: 0x7f7f7f7f7f7f7f7fll };
    1.11 @@ -92,6 +93,7 @@
    1.12  static const mmx_t GreedyTwoFrameThreshold = { ub: {TP, TP, TP, TP} };
    1.13  #undef TP
    1.14  #endif
    1.15 +#endif
    1.16  
    1.17  #if defined(IS_MMXEXT)
    1.18  static void DeinterlaceGreedy2Frame_MMXEXT(uint8_t *output, int outstride,
     2.1 --- a/src/post/deinterlace/plugins/greedy2frame_template_sse2.c	Sat Jun 09 18:58:05 2012 +0100
     2.2 +++ b/src/post/deinterlace/plugins/greedy2frame_template_sse2.c	Sun Jun 10 09:45:02 2012 +0300
     2.3 @@ -84,11 +84,12 @@
     2.4  **   B0    |         |    B1   |         |
     2.5  */
     2.6  
     2.7 -
     2.8 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
     2.9  static const sse_t Mask128 = { uq: { 0x7f7f7f7f7f7f7f7fll, 0x7f7f7f7f7f7f7f7fll} };
    2.10  #define TP GREEDYTWOFRAMETHRESHOLD, GREEDYTWOFRAMETHRESHOLD2
    2.11  static const sse_t GreedyTwoFrameThreshold128 = { ub: {TP, TP, TP, TP, TP, TP, TP, TP} };
    2.12  #undef TP
    2.13 +#endif
    2.14  
    2.15  static void DeinterlaceGreedy2Frame_SSE2(uint8_t *output, int outstride,
    2.16                                           deinterlace_frame_data_t *data,