[FFmpeg-devel] [PATCH] lavu/mem: clamp alignment to 16 for DJGPP
Clément Bœsch
u at pkh.me
Mon Mar 27 21:33:21 EEST 2017
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80208
---
libavutil/mem.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavutil/mem.h b/libavutil/mem.h
index 718a143c4c..527cd03191 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -97,6 +97,9 @@
#define DECLARE_ASM_CONST(n,t,v) \
AV_PRAGMA(DATA_ALIGN(v,n)) \
static const t __attribute__((aligned(n))) v
+#elif defined(__DJGPP__)
+ #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (FFMIN(n, 16)))) v
+ #define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (FFMIN(n, 16)))) v
#elif defined(__GNUC__) || defined(__clang__)
#define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
#define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (n))) v
--
2.12.1
More information about the ffmpeg-devel
mailing list