mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 11:33:54 +01:00
oh
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
#pragma once
|
||||
#include <math.h>
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
#ifndef M_2PI
|
||||
#define M_2PI (M_PI * 2.0)
|
||||
#endif
|
||||
|
||||
inline float sincf(float x) {
|
||||
return (x == 0.0f) ? 1.0f : sinf(M_PI * x) / (M_PI * x);
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user