diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-02-08 00:31:13 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-02-08 23:13:37 +0100 |
commit | 218aefce4472dc02ee3f12830a9a894bf7916da9 (patch) | |
tree | 3b6772260e9a11f65aa66c4594f888d60a888b3b /libavcodec/dsputil.h | |
parent | 059866eb17cd3c66422a61d3e9c3305f55830a50 (diff) | |
download | ffmpeg-218aefce4472dc02ee3f12830a9a894bf7916da9.tar.gz |
dsputil: Move LOCAL_ALIGNED macros to libavutil
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index e4568ab453..14c5db03bb 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -417,30 +417,4 @@ void ff_dsputil_init_vis(DSPContext* c, AVCodecContext *avctx); # define STRIDE_ALIGN 8 #endif -// Some broken preprocessors need a second expansion -// to be forced to tokenize __VA_ARGS__ -#define E(x) x - -#define LOCAL_ALIGNED_A(a, t, v, s, o, ...) \ - uint8_t la_##v[sizeof(t s o) + (a)]; \ - t (*v) o = (void *)FFALIGN((uintptr_t)la_##v, a) - -#define LOCAL_ALIGNED_D(a, t, v, s, o, ...) \ - DECLARE_ALIGNED(a, t, la_##v) s o; \ - t (*v) o = la_##v - -#define LOCAL_ALIGNED(a, t, v, ...) E(LOCAL_ALIGNED_A(a, t, v, __VA_ARGS__,,)) - -#if HAVE_LOCAL_ALIGNED_8 -# define LOCAL_ALIGNED_8(t, v, ...) E(LOCAL_ALIGNED_D(8, t, v, __VA_ARGS__,,)) -#else -# define LOCAL_ALIGNED_8(t, v, ...) LOCAL_ALIGNED(8, t, v, __VA_ARGS__) -#endif - -#if HAVE_LOCAL_ALIGNED_16 -# define LOCAL_ALIGNED_16(t, v, ...) E(LOCAL_ALIGNED_D(16, t, v, __VA_ARGS__,,)) -#else -# define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__) -#endif - #endif /* AVCODEC_DSPUTIL_H */ |