Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 51853 | Differences between
and this patch

Collapse All | Expand All

(-)MPlayer-1.0pre5__ORIGINAL__/libavcodec/i386/dsputil_mmx.c (-1 / +1 lines)
Lines 57-63 Link Here
57
    "pcmpeqd %%" #regd ", %%" #regd " \n\t"\
57
    "pcmpeqd %%" #regd ", %%" #regd " \n\t"\
58
    "paddb %%" #regd ", %%" #regd " \n\t" ::)
58
    "paddb %%" #regd ", %%" #regd " \n\t" ::)
59
59
60
#ifndef PIC
60
#ifndef __PIC__
61
#define MOVQ_BONE(regd)  __asm __volatile ("movq %0, %%" #regd " \n\t" ::"m"(mm_bone))
61
#define MOVQ_BONE(regd)  __asm __volatile ("movq %0, %%" #regd " \n\t" ::"m"(mm_bone))
62
#define MOVQ_WTWO(regd)  __asm __volatile ("movq %0, %%" #regd " \n\t" ::"m"(mm_wtwo))
62
#define MOVQ_WTWO(regd)  __asm __volatile ("movq %0, %%" #regd " \n\t" ::"m"(mm_wtwo))
63
#else
63
#else
(-)MPlayer-1.0pre5__ORIGINAL__/libavcodec/i386/dsputil_mmx_rnd.h (-2 / +2 lines)
Lines 96-102 Link Here
96
	"addl	%5, %3			\n\t"
96
	"addl	%5, %3			\n\t"
97
	"subl	$4, %0			\n\t"
97
	"subl	$4, %0			\n\t"
98
	"jnz	1b			\n\t"
98
	"jnz	1b			\n\t"
99
#ifdef PIC //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cant be used
99
#ifdef __PIC__ //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cant be used
100
        :"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst)
100
        :"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst)
101
#else
101
#else
102
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
102
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
Lines 191-197 Link Here
191
	"addl	$32, %2			\n\t"
191
	"addl	$32, %2			\n\t"
192
	"subl	$2, %0			\n\t"
192
	"subl	$2, %0			\n\t"
193
	"jnz	1b			\n\t"
193
	"jnz	1b			\n\t"
194
#ifdef PIC //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cant be used
194
#ifdef __PIC__ //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cant be used
195
	:"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst)
195
	:"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst)
196
#else
196
#else
197
	:"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
197
	:"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
(-)MPlayer-1.0pre5__ORIGINAL__/libavcodec/Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
VPATH=$(SRC_PATH)/libavcodec
7
VPATH=$(SRC_PATH)/libavcodec
8
8
9
# NOTE: -I.. is needed to include config.h
9
# NOTE: -I.. is needed to include config.h
10
CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
10
CFLAGS=$(OPTFLAGS) -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
11
11
12
OBJS= common.o utils.o mem.o allcodecs.o \
12
OBJS= common.o utils.o mem.o allcodecs.o \
13
      mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\
13
      mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\
(-)MPlayer-1.0pre5__ORIGINAL__/libavcodec/msmpeg4.c (-1 / +1 lines)
Lines 716-722 Link Here
716
       necessitate to modify mpegvideo.c. The problem comes from the
716
       necessitate to modify mpegvideo.c. The problem comes from the
717
       fact they decided to store the quantized DC (which would lead
717
       fact they decided to store the quantized DC (which would lead
718
       to problems if Q could vary !) */
718
       to problems if Q could vary !) */
719
#if defined ARCH_X86 && !defined PIC
719
#if defined ARCH_X86 && !defined __PIC__
720
    asm volatile(
720
    asm volatile(
721
        "movl %3, %%eax		\n\t"
721
        "movl %3, %%eax		\n\t"
722
	"shrl $1, %%eax		\n\t"
722
	"shrl $1, %%eax		\n\t"
(-)MPlayer-1.0pre5__ORIGINAL__/libmpeg2/cpu_accel.c (-1 / +1 lines)
Lines 35-41 Link Here
35
    int AMD;
35
    int AMD;
36
    uint32_t caps;
36
    uint32_t caps;
37
37
38
#ifndef PIC
38
#ifndef __PIC__
39
#define cpuid(op,eax,ebx,ecx,edx)	\
39
#define cpuid(op,eax,ebx,ecx,edx)	\
40
    __asm__ ("cpuid"			\
40
    __asm__ ("cpuid"			\
41
	     : "=a" (eax),		\
41
	     : "=a" (eax),		\

Return to bug 51853