aboutsummaryrefslogtreecommitdiff
path: root/defines.h
blob: ec2d81f58e0b3068bf713f52742e9cc126b50fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <m_pd.h>
#include <math.h>
#ifndef MAXFLOAT
#define MAXFLOAT  1e18;
#endif
#define LOGTEN 2.302585092994

#ifndef PD_FLOAT_PRECISION
#define PD_FLOAT_PRECISION 32
#endif

#if PD_FLOAT_PRECISION == 64
#define sinf sin
#define cosf cos
#define atanf atan
#define atan2f atan2
#define sqrtf sqrt
#define logf log
#define expf exp
#define fabsf fabs
#define powf pow
#endif