mirror of https://git.videolan.org/git/ffmpeg.git
lavu/mem: clamp alignment to 16 for DJGPP
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80208
This commit is contained in:
parent
4606807031
commit
1473afac5d
|
@ -97,6 +97,9 @@
|
||||||
#define DECLARE_ASM_CONST(n,t,v) \
|
#define DECLARE_ASM_CONST(n,t,v) \
|
||||||
AV_PRAGMA(DATA_ALIGN(v,n)) \
|
AV_PRAGMA(DATA_ALIGN(v,n)) \
|
||||||
static const t __attribute__((aligned(n))) v
|
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__)
|
#elif defined(__GNUC__) || defined(__clang__)
|
||||||
#define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
|
#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
|
#define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (n))) v
|
||||||
|
|
Loading…
Reference in New Issue