mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 23:22:33 -04:00
Create optimised integer functions to reduce CPU usage
(cherry picked from commit a47bfe1da7bffe9f752e4c522e11593cce6dffd0)
This commit is contained in:
parent
b549d3a4f1
commit
567fee1d98
4 changed files with 85 additions and 0 deletions
|
@ -90,6 +90,10 @@ inline float magnitude_squared(const std::complex<float> c) {
|
|||
return r2 + i2;
|
||||
}
|
||||
|
||||
int fast_int_magnitude(int y, int x);
|
||||
int int_atan2(int y, int x);
|
||||
int32_t int16_sin_s4(int32_t x);
|
||||
|
||||
template<class T>
|
||||
struct range_t {
|
||||
const T minimum;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue