mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-19 06:42:43 +00:00
added missing files
This commit is contained in:
12
core/src/dsp/utils/math.h
Normal file
12
core/src/dsp/utils/math.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include <math.h>
|
||||
|
||||
#define FL_M_PI 3.1415926535f
|
||||
|
||||
namespace dsp {
|
||||
namespace math {
|
||||
inline float sinc(float omega, float x, float norm) {
|
||||
return (x == 0.0f) ? 1.0f : (sinf(omega*x)/(norm*x));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user