# HG changeset patch # User michael # Date 1066913961 0 # Node ID b6b7d080f1a1582fea9f69c513d33d0d7d5954af # Parent 820e06c6ca9b5f50e832a6749f61ef8b445bc3f3 inline -> always_inline (842 -> 690 cpu cycles for dct_quantize() difference for the dct itself should be even bigger) diff -r 820e06c6ca9b -r b6b7d080f1a1 i386/fdct_mmx.c --- a/i386/fdct_mmx.c Thu Oct 23 12:41:54 2003 +0000 +++ b/i386/fdct_mmx.c Thu Oct 23 12:59:21 2003 +0000 @@ -131,7 +131,7 @@ }; -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 @@ 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);