diff options
author | Chris Robinson <[email protected]> | 2018-11-17 01:29:35 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-17 01:29:35 -0800 |
commit | f1731af282b3c54d2b19dedd72beb584cbda5220 (patch) | |
tree | 3f18e993ec0f51d7863ca16c3de0f788a3838021 /common/alcomplex.h | |
parent | 3bbfd0c0996e1db310cc2b72cffaf310a2adf6fb (diff) |
Remove unneeded declarations and definitions
Diffstat (limited to 'common/alcomplex.h')
-rw-r--r-- | common/alcomplex.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/common/alcomplex.h b/common/alcomplex.h index 2418ce78..0070ac13 100644 --- a/common/alcomplex.h +++ b/common/alcomplex.h @@ -13,39 +13,6 @@ typedef struct ALcomplex { ALdouble Imag; } ALcomplex; -/** Addition of two complex numbers. */ -inline ALcomplex complex_add(ALcomplex a, ALcomplex b) -{ - ALcomplex result; - - result.Real = a.Real + b.Real; - result.Imag = a.Imag + b.Imag; - - return result; -} - -/** Subtraction of two complex numbers. */ -inline ALcomplex complex_sub(ALcomplex a, ALcomplex b) -{ - ALcomplex result; - - result.Real = a.Real - b.Real; - result.Imag = a.Imag - b.Imag; - - return result; -} - -/** Multiplication of two complex numbers. */ -inline ALcomplex complex_mult(ALcomplex a, ALcomplex b) -{ - ALcomplex result; - - result.Real = a.Real*b.Real - a.Imag*b.Imag; - result.Imag = a.Imag*b.Real + a.Real*b.Imag; - - return result; -} - /** * Iterative implementation of 2-radix FFT (In-place algorithm). Sign = -1 is * FFT and 1 is iFFT (inverse). Fills FFTBuffer[0...FFTSize-1] with the |