2022-06-16 10:51:55 +00:00
|
|
|
|
2022-06-26 06:42:17 +00:00
|
|
|
static double LN2 = 0.693147180559945309417232121458176;
|
2022-06-18 02:53:07 +00:00
|
|
|
static double HALF_PI = 1.570796326794896619231321691639751;
|
|
|
|
static double PI = 3.141592653589793238462643383279502;
|
|
|
|
static double LOG2E = 1.442695040888963407359924681001892;
|
|
|
|
|
|
|
|
#define countof(arr) (sizeof arr/sizeof arr[0])
|
2022-06-16 10:51:55 +00:00
|
|
|
|
|
|
|
#define ftype float
|
|
|
|
#define suffix(name) name ## f
|
2022-07-18 21:27:37 +00:00
|
|
|
#include "cordic/cordic_dataf.h"
|
2022-06-26 06:42:17 +00:00
|
|
|
#include "gen_math.h"
|
2022-06-16 10:51:55 +00:00
|
|
|
#undef ftype
|
|
|
|
#undef suffix
|
|
|
|
|
|
|
|
#define ftype double
|
|
|
|
#define suffix(name) name
|
2022-07-18 21:27:37 +00:00
|
|
|
#include "cordic/cordic_data.h"
|
2022-06-26 06:42:17 +00:00
|
|
|
#include "gen_math.h"
|
2022-06-16 10:51:55 +00:00
|
|
|
#undef ftype
|
|
|
|
#undef suffix
|
|
|
|
|
|
|
|
#define ftype long double
|
|
|
|
#define suffix(name) name ## l
|
2022-07-18 21:27:37 +00:00
|
|
|
#include "cordic/cordic_datal.h"
|
2022-06-26 06:42:17 +00:00
|
|
|
#include "gen_math.h"
|
2022-06-16 10:51:55 +00:00
|
|
|
#undef ftype
|
|
|
|
#undef suffix
|