1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

jfdct: Replace sized int_fast integer types with plain int/unsigned.

int/unsigned is the natural memory access type for CPUs, using sized types
for temporary variables, counters and similar just increases code size and
can possibly cause a slowdown.
This commit is contained in:
Diego Biurrun 2011-04-29 20:17:43 +02:00
parent 046f081b46
commit be89845708
2 changed files with 18 additions and 18 deletions

View File

@ -145,9 +145,9 @@
#define MULTIPLY(var,const) ((DCTELEM) DESCALE((var) * (const), CONST_BITS)) #define MULTIPLY(var,const) ((DCTELEM) DESCALE((var) * (const), CONST_BITS))
static av_always_inline void row_fdct(DCTELEM * data){ static av_always_inline void row_fdct(DCTELEM * data){
int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
int_fast16_t tmp10, tmp11, tmp12, tmp13; int tmp10, tmp11, tmp12, tmp13;
int_fast16_t z1, z2, z3, z4, z5, z11, z13; int z1, z2, z3, z4, z5, z11, z13;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
@ -209,9 +209,9 @@ static av_always_inline void row_fdct(DCTELEM * data){
GLOBAL(void) GLOBAL(void)
fdct_ifast (DCTELEM * data) fdct_ifast (DCTELEM * data)
{ {
int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
int_fast16_t tmp10, tmp11, tmp12, tmp13; int tmp10, tmp11, tmp12, tmp13;
int_fast16_t z1, z2, z3, z4, z5, z11, z13; int z1, z2, z3, z4, z5, z11, z13;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
@ -275,9 +275,9 @@ fdct_ifast (DCTELEM * data)
GLOBAL(void) GLOBAL(void)
fdct_ifast248 (DCTELEM * data) fdct_ifast248 (DCTELEM * data)
{ {
int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
int_fast16_t tmp10, tmp11, tmp12, tmp13; int tmp10, tmp11, tmp12, tmp13;
int_fast16_t z1; int z1;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;

View File

@ -181,9 +181,9 @@
static av_always_inline void row_fdct(DCTELEM * data){ static av_always_inline void row_fdct(DCTELEM * data){
int_fast32_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
int_fast32_t tmp10, tmp11, tmp12, tmp13; int tmp10, tmp11, tmp12, tmp13;
int_fast32_t z1, z2, z3, z4, z5; int z1, z2, z3, z4, z5;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
@ -259,9 +259,9 @@ static av_always_inline void row_fdct(DCTELEM * data){
GLOBAL(void) GLOBAL(void)
ff_jpeg_fdct_islow (DCTELEM * data) ff_jpeg_fdct_islow (DCTELEM * data)
{ {
int_fast32_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
int_fast32_t tmp10, tmp11, tmp12, tmp13; int tmp10, tmp11, tmp12, tmp13;
int_fast32_t z1, z2, z3, z4, z5; int z1, z2, z3, z4, z5;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
@ -345,9 +345,9 @@ ff_jpeg_fdct_islow (DCTELEM * data)
GLOBAL(void) GLOBAL(void)
ff_fdct248_islow (DCTELEM * data) ff_fdct248_islow (DCTELEM * data)
{ {
int_fast32_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
int_fast32_t tmp10, tmp11, tmp12, tmp13; int tmp10, tmp11, tmp12, tmp13;
int_fast32_t z1; int z1;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;