Skip to content

Commit

Permalink
Always inline block4() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Mar 16, 2023
1 parent f83dde7 commit 393c62d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion g722_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static __inline__ int16_t saturate(int32_t amp)
}
/*- End of function --------------------------------------------------------*/

static void block4(G722_DEC_CTX *s, int band, int d);
static void block4(G722_DEC_CTX *, int, int) __attribute__((always_inline));

static void block4(G722_DEC_CTX *s, int band, int d)
{
Expand Down
4 changes: 3 additions & 1 deletion g722_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ static __inline__ int16_t saturate(int32_t amp)
}
/*- End of function --------------------------------------------------------*/

static void block4(G722_ENC_CTX *s, int band, int d)
static void block4(G722_ENC_CTX *, int, int) __attribute__((always_inline));

static __attribute__((always_inline)) void block4(G722_ENC_CTX *s, int band, int d)
{
int wd1;
int wd2;
Expand Down

0 comments on commit 393c62d

Please sign in to comment.