diff options
author | James Cowgill <james410@cowgill.org.uk> | 2015-03-05 20:40:15 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-06 16:37:44 +0300 |
commit | 157d6f0d5b95261bf053566d8a1c2652387da30c (patch) | |
tree | ca481834165a1f3c103eea9dc50fd5e877bbcbde /libavcodec/mips/compute_antialias_float.h | |
parent | eae13eae9d6499e81cd77bcd9e13f7bcb31b5577 (diff) |
mips: port optimizations to mips n64
This mainly consists of replacing all the pointer arithmatic 'addiu'
instructions with PTR_ADDIU which will handle the differences in pointer
sizes when compiled on 64 bit mips systems.
The header asmdefs.h contains the PTR_ macros which expend to the correct mips
instructions to manipulate registers containing pointers.
Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mips/compute_antialias_float.h')
-rw-r--r-- | libavcodec/mips/compute_antialias_float.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mips/compute_antialias_float.h b/libavcodec/mips/compute_antialias_float.h index e84abda9f0..f6cf46508b 100644 --- a/libavcodec/mips/compute_antialias_float.h +++ b/libavcodec/mips/compute_antialias_float.h @@ -55,6 +55,8 @@ #ifndef AVCODEC_MIPS_COMPUTE_ANTIALIAS_FLOAT_H #define AVCODEC_MIPS_COMPUTE_ANTIALIAS_FLOAT_H +#include "libavutil/mips/asmdefs.h" + #if HAVE_INLINE_ASM static void compute_antialias_mips_float(MPADecodeContext *s, GranuleDef *g) @@ -158,7 +160,7 @@ static void compute_antialias_mips_float(MPADecodeContext *s, "mul.s %[out4], %[in5], %[in7] \t\n" "swc1 %[out1], -7*4(%[ptr]) \t\n" "swc1 %[out2], 6*4(%[ptr]) \t\n" - "addiu %[ptr], %[ptr], 72 \t\n" + PTR_ADDIU "%[ptr],%[ptr], 72 \t\n" "nmsub.s %[out3], %[out3], %[in7], %[in8] \t\n" "madd.s %[out4], %[out4], %[in6], %[in8] \t\n" "swc1 %[out3], -26*4(%[ptr]) \t\n" |