[FFmpeg-cvslog] lavu/mem: clamp alignment to 16 for DJGPP
Clément Bœsch
git at videolan.org
Wed Mar 29 15:55:06 EEST 2017
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Mon Mar 27 20:30:24 2017 +0200| [1473afac5d11a0a90810b6cd8107d63640c9fd38] | committer: Clément Bœsch
lavu/mem: clamp alignment to 16 for DJGPP
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80208
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1473afac5d11a0a90810b6cd8107d63640c9fd38
---
libavutil/mem.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavutil/mem.h b/libavutil/mem.h
index 718a143..527cd03 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
More information about the ffmpeg-cvslog
mailing list