mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
added constexpr to constants ..
This commit is contained in:
parent
7344f2d58c
commit
af22ddb8fd
1 changed files with 6 additions and 6 deletions
12
const.hh
12
const.hh
|
|
@ -11,12 +11,12 @@ namespace DSP {
|
|||
|
||||
template <typename T>
|
||||
struct Const {
|
||||
static inline T EighthPi() { return 0.39269908169872415481; } // a(1)/2
|
||||
static inline T FourthPi() { return 0.78539816339744830962; } // 1*a(1)
|
||||
static inline T HalfPi() { return 1.57079632679489661923; } // 2*a(1)
|
||||
static inline T Pi() { return 3.14159265358979323846; } // 4*a(1)
|
||||
static inline T TwoPi() { return 6.28318530717958647693; } // 8*a(1)
|
||||
static inline T FourPi() { return 12.56637061435917295385; } // 16*a(1)
|
||||
static inline constexpr T EighthPi() { return 0.39269908169872415481; } // a(1)/2
|
||||
static inline constexpr T FourthPi() { return 0.78539816339744830962; } // 1*a(1)
|
||||
static inline constexpr T HalfPi() { return 1.57079632679489661923; } // 2*a(1)
|
||||
static inline constexpr T Pi() { return 3.14159265358979323846; } // 4*a(1)
|
||||
static inline constexpr T TwoPi() { return 6.28318530717958647693; } // 8*a(1)
|
||||
static inline constexpr T FourPi() { return 12.56637061435917295385; } // 16*a(1)
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue