mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
#define ATTRIBUTE_ALIGNED_MAX in config.h instead of hardcoding it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26075 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b8850a630d
commit
ea42787378
3
configure
vendored
3
configure
vendored
@ -8142,6 +8142,9 @@ $_def_dvdnav
|
||||
/* Define this to enable MPEG 1/2 image postprocessing (requires a FAST CPU!) */
|
||||
#define MPEG12_POSTPROC 1
|
||||
|
||||
/* maximum alignment used by libmpeg2 */
|
||||
#define ATTRIBUTE_ALIGNED_MAX 16
|
||||
|
||||
/* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */
|
||||
$_def_libpostproc
|
||||
$_def_libpostproc_a
|
||||
|
@ -29,7 +29,7 @@
|
||||
#ifdef ATTRIBUTE_ALIGNED_MAX
|
||||
#define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < align) ? ATTRIBUTE_ALIGNED_MAX : align)))
|
||||
#else
|
||||
#define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((16 < align) ? 16 : align)))
|
||||
#define ATTR_ALIGN(align)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BUILTIN_EXPECT
|
||||
|
@ -1,14 +1,3 @@
|
||||
--- include/attributes.h 2006-06-16 20:12:26.000000000 +0200
|
||||
+++ libmpeg2/attributes.h 2006-06-16 20:12:50.000000000 +0200
|
||||
@@ -25,7 +29,7 @@
|
||||
#ifdef ATTRIBUTE_ALIGNED_MAX
|
||||
#define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < align) ? ATTRIBUTE_ALIGNED_MAX : align)))
|
||||
#else
|
||||
-#define ATTR_ALIGN(align)
|
||||
+#define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((16 < align) ? 16 : align)))
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BUILTIN_EXPECT
|
||||
--- libmpeg2/cpu_accel.c 2006-06-16 20:12:26.000000000 +0200
|
||||
+++ libmpeg2/cpu_accel.c 2006-06-16 20:12:50.000000000 +0200
|
||||
@@ -22,6 +26,7 @@
|
||||
|
Loading…
Reference in New Issue
Block a user