summaryrefslogtreecommitdiff
path: root/vp9/common/mips/dspr2
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2015-05-02 13:24:16 -0700
committerJames Zern <jzern@google.com>2015-05-07 11:55:08 -0700
commitfd3658b0e4b52b5045b4881900292258ed106f39 (patch)
tree2d44fe3f9faa39af60a67f06a79880ec0294be07 /vp9/common/mips/dspr2
parent76a08210b667f5c7ce8d64d930382c948dbeaea7 (diff)
downloadlibvpx-fd3658b0e4b52b5045b4881900292258ed106f39.tar
libvpx-fd3658b0e4b52b5045b4881900292258ed106f39.tar.gz
libvpx-fd3658b0e4b52b5045b4881900292258ed106f39.tar.bz2
libvpx-fd3658b0e4b52b5045b4881900292258ed106f39.zip
replace DECLARE_ALIGNED_ARRAY w/DECLARE_ALIGNED
this macro was used inconsistently and only differs in behavior from DECLARE_ALIGNED when an alignment attribute is unavailable. this macro is used with calls to assembly, while generic c-code doesn't rely on it, so in a c-only build without an alignment attribute the code will function as expected. Change-Id: Ie9d06d4028c0de17c63b3a27e6c1b0491cc4ea79
Diffstat (limited to 'vp9/common/mips/dspr2')
-rw-r--r--vp9/common/mips/dspr2/vp9_convolve8_avg_dspr2.c2
-rw-r--r--vp9/common/mips/dspr2/vp9_convolve8_dspr2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/vp9/common/mips/dspr2/vp9_convolve8_avg_dspr2.c b/vp9/common/mips/dspr2/vp9_convolve8_avg_dspr2.c
index ab18490dc..17422798c 100644
--- a/vp9/common/mips/dspr2/vp9_convolve8_avg_dspr2.c
+++ b/vp9/common/mips/dspr2/vp9_convolve8_avg_dspr2.c
@@ -413,7 +413,7 @@ void vp9_convolve8_avg_dspr2(const uint8_t *src, ptrdiff_t src_stride,
const int16_t *filter_y, int y_step_q4,
int w, int h) {
/* Fixed size intermediate buffer places limits on parameters. */
- DECLARE_ALIGNED_ARRAY(32, uint8_t, temp, 64 * 135);
+ DECLARE_ALIGNED(32, uint8_t, temp[64 * 135]);
int32_t intermediate_height = ((h * y_step_q4) >> 4) + 7;
assert(w <= 64);
diff --git a/vp9/common/mips/dspr2/vp9_convolve8_dspr2.c b/vp9/common/mips/dspr2/vp9_convolve8_dspr2.c
index 0ef9dd508..58b50d2df 100644
--- a/vp9/common/mips/dspr2/vp9_convolve8_dspr2.c
+++ b/vp9/common/mips/dspr2/vp9_convolve8_dspr2.c
@@ -950,7 +950,7 @@ void vp9_convolve8_dspr2(const uint8_t *src, ptrdiff_t src_stride,
const int16_t *filter_x, int x_step_q4,
const int16_t *filter_y, int y_step_q4,
int w, int h) {
- DECLARE_ALIGNED_ARRAY(32, uint8_t, temp, 64 * 135);
+ DECLARE_ALIGNED(32, uint8_t, temp[64 * 135]);
int32_t intermediate_height = ((h * y_step_q4) >> 4) + 7;
uint32_t pos = 38;