stage 4 package updates
[hdw-linux/hdw-linux.git] / packages / multimedia / libmpeg3 / gcc34.patch
1 libmpeg3-1.5.4.jbit/video/output.c
2 --- libmpeg3-1.5.4/video/output.c       2003-11-07 13:32:32.000000000 -0800
3 +++ libmpeg3-1.5.4.jbit/video/output.c  2004-04-13 12:54:53.756934515 -0700
4 @@ -1062,3 +1062,39 @@
5  /* Not used */
6         return 0;
7  }
8 +
9 +#ifdef HAVE_MMX
10 +/* 
11 +       Make sure that these vars get linked
12 +       For some reason gcc3.4 doesn't link them
13 +       There's gotta be a better way to do this, this is just a quick hack
14 +*/
15 +void ___jbit_hack()
16 +{
17 +       void *foo;
18 +       foo = &mpeg3_MMX_0;
19 +       foo = mpeg3_MMX_10w;
20 +       foo = mpeg3_MMX_80w;
21 +       foo = mpeg3_MMX_00FFw;
22 +       foo = mpeg3_MMX_Ublucoeff;
23 +       foo = mpeg3_MMX_Vredcoeff;
24 +       foo = mpeg3_MMX_Ugrncoeff;
25 +       foo = mpeg3_MMX_Vgrncoeff;
26 +       foo = mpeg3_MMX_Ycoeff;
27 +       foo = mpeg3_MMX_redmask;
28 +       foo = mpeg3_MMX_grnmask;
29 +       foo = mpeg3_601_to_rgb;
30 +
31 +       foo = &mpeg3_MMX_U_80;
32 +       foo = &mpeg3_MMX_V_80;
33 +       foo = &mpeg3_MMX_U_COEF;
34 +       foo = &mpeg3_MMX_V_COEF;
35 +       foo = &mpeg3_MMX_601_Y_COEF;
36 +       foo = &mpeg3_MMX_601_Y_DIFF;
37 +
38 +       foo = &mpeg3_MMX_U_80_RGB;
39 +       foo = &mpeg3_MMX_V_80_RGB;
40 +       foo = &mpeg3_MMX_U_COEF_RGB;
41 +       foo = &mpeg3_MMX_V_COEF_RGB;
42 +}
43 +#endif
44 --- libmpeg3-1.5.4/video/reconstruct.c  2003-10-14 00:54:14.000000000 -0700
45 +++ libmpeg3-1.5.4.jbit/video/reconstruct.c     2004-04-13 12:57:23.280261795 -0700
46 @@ -1286,4 +1286,16 @@
47         return 0;
48  }
49  
50 -
51 +#ifdef HAVE_MMX
52 +/* 
53 +        Make sure that these vars get linked
54 +        For some reason gcc3.4 doesn't link them
55 +        There's gotta be a better way to do this, this is just a quick hack
56 +*/
57 +void ___jbit_hack_reconstruct()
58 +{
59 +       void *foo;
60 +       foo = &MASK_AND;
61 +       foo = &ADD_1;
62 +}
63 +#endif 
64 --- libmpeg3-1.5.4/video/slice.c        2003-10-14 00:54:14.000000000 -0700
65 +++ libmpeg3-1.5.4.jbit/video/slice.c   2004-04-13 12:55:54.710884733 -0700
66 @@ -706,3 +706,16 @@
67         pthread_mutex_destroy(&(slice->output_lock));
68         return 0;
69  }
70 +
71 +#ifdef HAVE_MMX
72 +/* 
73 +        Make sure that these vars get linked
74 +        For some reason gcc3.4 doesn't link them
75 +        There's gotta be a better way to do this, this is just a quick hack
76 +*/
77 +void ___jbit_hack_slice()
78 +{
79 +       void *foo;
80 +       foo = &MMX_128;
81 +}
82 +#endif