aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/mips
diff options
context:
space:
mode:
authorShivraj Patil <shivraj.patil@imgtec.com>2015-07-20 20:04:31 +0530
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-23 16:52:18 +0200
commitfd7eadd25c77307ef8398b5f0307b18050ee070a (patch)
tree20bb98012ab30a58e558d85a0d74c88240e71036 /libavutil/mips
parent52c75d486ed5f75cbb79e5dbd07b7aef24f3071f (diff)
downloadffmpeg-fd7eadd25c77307ef8398b5f0307b18050ee070a.tar.gz
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP9 lpf functions
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/mips')
-rw-r--r--libavutil/mips/generic_macros_msa.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/mips/generic_macros_msa.h b/libavutil/mips/generic_macros_msa.h
index 6e5598056e..b1d18dd9d3 100644
--- a/libavutil/mips/generic_macros_msa.h
+++ b/libavutil/mips/generic_macros_msa.h
@@ -24,6 +24,9 @@
#include <stdint.h>
#include <msa.h>
+#define ALIGNMENT 16
+#define ALLOC_ALIGNED(align) __attribute__ ((aligned((align) << 1)))
+
#define LD_B(RTYPE, psrc) *((RTYPE *)(psrc))
#define LD_UB(...) LD_B(v16u8, __VA_ARGS__)
#define LD_SB(...) LD_B(v16i8, __VA_ARGS__)