mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
4.9 KiB

  1. add the attribute used to some variables, so gcc 3.4 does not remove them;
  2. gcc 3.2.3 ignores the attribute.
  3. diff -dur ffmpeg-0.4.8/libavcodec/i386/dsputil_mmx.c ffmpeg-0.4.8-patch/libavcodec/i386/dsputil_mmx.c
  4. --- ffmpeg-0.4.8/libavcodec/i386/dsputil_mmx.c 2003-09-28 17:26:40.000000000 +0200
  5. +++ ffmpeg-0.4.8-patch/libavcodec/i386/dsputil_mmx.c 2004-06-14 17:17:20.000000000 +0200
  6. @@ -29,8 +29,8 @@
  7. static const uint64_t mm_wone __attribute__ ((aligned(8))) = 0x0001000100010001ULL;
  8. static const uint64_t mm_wtwo __attribute__ ((aligned(8))) = 0x0002000200020002ULL;
  9. -static const uint64_t ff_pw_20 __attribute__ ((aligned(8))) = 0x0014001400140014ULL;
  10. -static const uint64_t ff_pw_3 __attribute__ ((aligned(8))) = 0x0003000300030003ULL;
  11. +static const uint64_t ff_pw_20 __attribute__ ((used)) __attribute__ ((aligned(8))) = 0x0014001400140014ULL;
  12. +static const uint64_t ff_pw_3 __attribute__ ((used)) __attribute__ ((aligned(8))) = 0x0003000300030003ULL;
  13. static const uint64_t ff_pw_16 __attribute__ ((aligned(8))) = 0x0010001000100010ULL;
  14. static const uint64_t ff_pw_15 __attribute__ ((aligned(8))) = 0x000F000F000F000FULL;
  15. Nur in ffmpeg-0.4.8-patch/libavcodec/i386: dsputil_mmx.c~.
  16. diff -dur ffmpeg-0.4.8/libavcodec/i386/motion_est_mmx.c ffmpeg-0.4.8-patch/libavcodec/i386/motion_est_mmx.c
  17. --- ffmpeg-0.4.8/libavcodec/i386/motion_est_mmx.c 2003-09-28 17:26:40.000000000 +0200
  18. +++ ffmpeg-0.4.8-patch/libavcodec/i386/motion_est_mmx.c 2004-06-14 17:13:55.000000000 +0200
  19. @@ -26,7 +26,7 @@
  20. 0x0002000200020002,
  21. };
  22. -static __attribute__ ((aligned(8), unused)) uint64_t bone= 0x0101010101010101LL;
  23. +static __attribute__ ((used)) __attribute__ ((aligned(8), unused)) uint64_t bone= 0x0101010101010101LL;
  24. static inline void sad8_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h)
  25. {
  26. Nur in ffmpeg-0.4.8-patch/libavcodec/i386: motion_est_mmx.c~.
  27. diff -dur ffmpeg-0.4.8/libavcodec/i386/simple_idct_mmx.c ffmpeg-0.4.8-patch/libavcodec/i386/simple_idct_mmx.c
  28. --- ffmpeg-0.4.8/libavcodec/i386/simple_idct_mmx.c 2003-09-28 17:26:40.000000000 +0200
  29. +++ ffmpeg-0.4.8-patch/libavcodec/i386/simple_idct_mmx.c 2004-06-14 17:17:47.000000000 +0200
  30. @@ -45,8 +45,8 @@
  31. #define ROW_SHIFT 11
  32. #define COL_SHIFT 20 // 6
  33. -static const uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;
  34. -static const uint64_t __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;
  35. +static const uint64_t __attribute__ ((used)) __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;
  36. +static const uint64_t __attribute__ ((used)) __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;
  37. static const int16_t __attribute__((aligned(8))) coeffs[]= {
  38. 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0,
  39. Nur in ffmpeg-0.4.8-patch/libavcodec/i386: simple_idct_mmx.c~.
  40. diff -dur ffmpeg-0.4.8/libavcodec/liba52/resample_mmx.c ffmpeg-0.4.8-patch/libavcodec/liba52/resample_mmx.c
  41. --- ffmpeg-0.4.8/libavcodec/liba52/resample_mmx.c 2003-09-28 17:26:40.000000000 +0200
  42. +++ ffmpeg-0.4.8-patch/libavcodec/liba52/resample_mmx.c 2004-06-14 16:53:43.000000000 +0200
  43. @@ -7,10 +7,11 @@
  44. and it would mean (C / MMX2 / MMX / 3DNOW) versions
  45. */
  46. -static uint64_t __attribute__((aligned(8))) magicF2W= 0x43c0000043c00000LL;
  47. -static uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL;
  48. -static uint64_t __attribute__((aligned(8))) wm0101= 0x0000FFFF0000FFFFLL;
  49. -static uint64_t __attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000LL;
  50. +static uint64_t __attribute__((used)) __attribute__((aligned(8))) magicF2W= 0x43c0000043c00000LL;
  51. +static uint64_t __attribute__((used)) __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL;
  52. +static uint64_t __attribute__((used)) __attribute__((aligned(8))) wm0101= 0x0000FFFF0000FFFFLL;
  53. +static uint64_t __attribute__((used)) __attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000LL;
  54. +
  55. static int a52_resample_MONO_to_5_MMX(float * _f, int16_t * s16){
  56. int32_t * f = (int32_t *) _f;
  57. Nur in ffmpeg-0.4.8-patch/libavcodec/liba52: resample_mmx.c~.
  58. diff -dur ffmpeg-0.4.8/libavcodec/libpostproc/postprocess.c ffmpeg-0.4.8-patch/libavcodec/libpostproc/postprocess.c
  59. --- ffmpeg-0.4.8/libavcodec/libpostproc/postprocess.c 2003-09-28 17:26:40.000000000 +0200
  60. +++ ffmpeg-0.4.8-patch/libavcodec/libpostproc/postprocess.c 2004-06-14 17:15:07.000000000 +0200
  61. @@ -104,8 +104,8 @@
  62. //#define NUM_BLOCKS_AT_ONCE 16 //not used yet
  63. #ifdef ARCH_X86
  64. -static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL;
  65. -static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL;
  66. +static uint64_t __attribute__ ((used)) __attribute__((aligned(8))) w05= 0x0005000500050005LL;
  67. +static uint64_t __attribute__ ((used)) __attribute__((aligned(8))) w20= 0x0020002000200020LL;
  68. static uint64_t __attribute__((aligned(8))) b00= 0x0000000000000000LL;
  69. static uint64_t __attribute__((aligned(8))) b01= 0x0101010101010101LL;
  70. static uint64_t __attribute__((aligned(8))) b02= 0x0202020202020202LL;
  71. Nur in ffmpeg-0.4.8-patch/libavcodec/libpostproc: postprocess.c~.