vlc-gcc-hack.patch

Elan Ruusamäe glen at delfi.ee
Wed Dec 13 09:31:54 CET 2006


On Wednesday 13 December 2006 10:17, Paweł Sikora wrote:
>  > copy __m64 from
>  > /usr/lib/gcc-lib/i686-pld-linux/3.3.6/include/mmintrin.h
>
> veto!
>
> glen, if you want such typedefs use /dev/brain,
> include <mmintrin.h> and pass -mmmx to cflags.

that header is included already and mmx is enabled too otherwise mmintrin.h would fail

glen at builder-ac pld/SPECS $ grep -C2 __MMX /usr/lib/gcc-lib/i686-pld-linux/3.3.6/include/mmintrin.h
#define _MMINTRIN_H_INCLUDED

#ifndef __MMX__
# error "MMX instruction set not enabled"
#else
--

glen at builder-ac pld/SPECS $ grep -C2 HAVE_MMX_INTRINSICS ../BUILD/vlc-0.8.6/modules/video_chroma/i420_rgb16.c
#   include "i420_rgb_c.h"
#elif defined (MODULE_NAME_IS_i420_rgb_mmx)
#   if defined(HAVE_MMX_INTRINSICS)
#       include <mmintrin.h>
#   endif
--
            for ( i_x = p_vout->render.i_width / 8; i_x--; )
            {
#   if defined (HAVE_MMX_INTRINSICS)
                __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7;
                uint64_t tmp64;
--
            for ( i_x = p_vout->render.i_width / 8; i_x--; )
            {
#   if defined (HAVE_MMX_INTRINSICS)
                __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7;
                uint64_t tmp64;
--
        {
#if defined (MODULE_NAME_IS_i420_rgb_mmx)
#   if defined (HAVE_MMX_INTRINSICS)
typedef int __m64 __attribute__ ((__mode__ (__V2SI__)));
            __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7;
--


-- 
glen


More information about the pld-devel-en mailing list