summaryrefslogtreecommitdiff
path: root/libavcodec/i386
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-10-23 12:59:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-10-23 12:59:21 +0000
commit1745173bc56482e449253ef8d1032c6d5d48cab2 (patch)
tree37aa9b4ed0f66ff913999a1f3c65c4fc7da14769 /libavcodec/i386
parent8d00c562e8309a22112739e029c456758a32d20b (diff)
inline -> always_inline (842 -> 690 cpu cycles for dct_quantize() difference for the dct itself should be even bigger)
Originally committed as revision 2422 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386')
-rw-r--r--libavcodec/i386/fdct_mmx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/i386/fdct_mmx.c b/libavcodec/i386/fdct_mmx.c
index 8d3552d2ac..0b3d4d360c 100644
--- a/libavcodec/i386/fdct_mmx.c
+++ b/libavcodec/i386/fdct_mmx.c
@@ -131,7 +131,7 @@ static const int16_t tab_frw_01234567[] ATTR_ALIGN(8) = { // forward_dct coeff
};
-static inline void fdct_col(const int16_t *in, int16_t *out, int offset)
+static always_inline void fdct_col(const int16_t *in, int16_t *out, int offset)
{
movq_m2r(*(in + offset + 1 * 8), mm0);
movq_m2r(*(in + offset + 6 * 8), mm1);
@@ -210,15 +210,15 @@ static inline void fdct_col(const int16_t *in, int16_t *out, int offset)
movq_r2m(mm3, *(out + offset + 7 * 8));
}
-static inline void fdct_row(const int16_t *in, int16_t *out, const int16_t *table)
-{
+static always_inline void fdct_row(const int16_t *in, int16_t *out, const int16_t *table)
+{
movd_m2r(*(in + 6), mm5);
punpcklwd_m2r(*(in + 4), mm5);
movq_r2r(mm5, mm2);
psrlq_i2r(0x20, mm5);
movq_m2r(*(in + 0), mm0);
punpcklwd_r2r(mm2, mm5);
- movq_r2r(mm0, mm1);
+ movq_r2r(mm0, mm1);
paddsw_r2r(mm5, mm0);
psubsw_r2r(mm5, mm1);
movq_r2r(mm0, mm2);