-
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not force inlining of indirect functions
* A function called indirectly cannot be decorated with `__attribute((always_inline))`, as this is guaranteed to only work with direct calls: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63220#c1 Bug: https://bugs.gentoo.org/798045
- Loading branch information
1 parent
801f67f
commit 7f328b9
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,7 +170,7 @@ [email protected] | |
|
||
/* Performs the FFT of length 2. Input vector unscaled, output vector scaled | ||
* with factor 0.5 */ | ||
static FDK_FORCEINLINE void fft2(FIXP_DBL *RESTRICT pDat) { | ||
static inline void fft2(FIXP_DBL *RESTRICT pDat) { | ||
FIXP_DBL r1, i1; | ||
FIXP_DBL r2, i2; | ||
|
||
|
@@ -196,7 +196,7 @@ static FDK_FORCEINLINE void fft2(FIXP_DBL *RESTRICT pDat) { | |
|
||
#ifndef FUNCTION_fft3 | ||
/* Performs the FFT of length 3 according to the algorithm after winograd. */ | ||
static FDK_FORCEINLINE void fft3(FIXP_DBL *RESTRICT pDat) { | ||
static inline void fft3(FIXP_DBL *RESTRICT pDat) { | ||
FIXP_DBL r1, r2; | ||
FIXP_DBL s1, s2; | ||
FIXP_DBL pD; | ||
|
@@ -233,7 +233,7 @@ static FDK_FORCEINLINE void fft3(FIXP_DBL *RESTRICT pDat) { | |
|
||
/* performs the FFT of length 5 according to the algorithm after winograd */ | ||
/* This version works with a prescale of 2 instead of 3 */ | ||
static FDK_FORCEINLINE void fft5(FIXP_DBL *RESTRICT pDat) { | ||
static inline void fft5(FIXP_DBL *RESTRICT pDat) { | ||
FIXP_DBL r1, r2, r3, r4; | ||
FIXP_DBL s1, s2, s3, s4; | ||
FIXP_DBL t; | ||
|