Changeset 83b1f6c89fb2fdf80de4ac8c9458ab7872a2726a

Show
Ignore:
Timestamp:
05/17/04 21:38:13 (4 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1084822693 +0000
git-parent:

[d0ed0d4b39f5d1da5847192ebac573fba3ed832a]

git-author:
Gildas Bazin <gbazin@videolan.org> 1084822693 +0000
Message:

* modules/video_chroma/i420_rgb_mmx.h: gcc-3.4 compilation fix.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_chroma/i420_rgb_mmx.h

    r74b2905 r83b1f6c  
    22 * transforms_yuvmmx.h: MMX YUV transformation assembly 
    33 ***************************************************************************** 
    4  * Copyright (C) 1999, 2000 VideoLAN 
    5  * $Id: i420_rgb_mmx.h,v 1.4 2003/10/01 03:38:24 sam Exp
     4 * Copyright (C) 1999-2004 VideoLAN 
     5 * $Id
    66 * 
    77 * Authors: Olie Lho <ollie@sis.com.tw> 
     
    2525 
    2626/* hope these constant values are cache line aligned */ 
    27 #define UNUSED_U64(foo) \ 
     27#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) 
     28#define USED_U64(foo) \ 
     29    static const uint64_t foo __asm__ (#foo) __attribute__((used)) 
     30#else 
     31#define USED_U64(foo) \ 
    2832    static const uint64_t foo __asm__ (#foo) __attribute__((unused)) 
    29 UNUSED_U64(mmx_80w)     = 0x0080008000800080ULL; 
    30 UNUSED_U64(mmx_10w)     = 0x1010101010101010ULL; 
    31 UNUSED_U64(mmx_00ffw)   = 0x00ff00ff00ff00ffULL; 
    32 UNUSED_U64(mmx_Y_coeff) = 0x253f253f253f253fULL; 
    33  
    34 UNUSED_U64(mmx_U_green) = 0xf37df37df37df37dULL; 
    35 UNUSED_U64(mmx_U_blue)  = 0x4093409340934093ULL; 
    36 UNUSED_U64(mmx_V_red)   = 0x3312331233123312ULL; 
    37 UNUSED_U64(mmx_V_green) = 0xe5fce5fce5fce5fcULL; 
    38  
    39 UNUSED_U64(mmx_mask_f8) = 0xf8f8f8f8f8f8f8f8ULL; 
    40 UNUSED_U64(mmx_mask_fc) = 0xfcfcfcfcfcfcfcfcULL; 
    41 #undef UNUSED_U64 
     33#endif 
     34USED_U64(mmx_80w)     = 0x0080008000800080ULL; 
     35USED_U64(mmx_10w)     = 0x1010101010101010ULL; 
     36USED_U64(mmx_00ffw)   = 0x00ff00ff00ff00ffULL; 
     37USED_U64(mmx_Y_coeff) = 0x253f253f253f253fULL; 
     38 
     39USED_U64(mmx_U_green) = 0xf37df37df37df37dULL; 
     40USED_U64(mmx_U_blue)  = 0x4093409340934093ULL; 
     41USED_U64(mmx_V_red)   = 0x3312331233123312ULL; 
     42USED_U64(mmx_V_green) = 0xe5fce5fce5fce5fcULL; 
     43 
     44USED_U64(mmx_mask_f8) = 0xf8f8f8f8f8f8f8f8ULL; 
     45USED_U64(mmx_mask_fc) = 0xfcfcfcfcfcfcfcfcULL; 
     46#undef USED_U64 
    4247 
    4348#define MMX_INIT_16 "                                                       \n\