aboutsummaryrefslogtreecommitdiff
path: root/defines.h
blob: 093a477ea172cb10d8b315b5f498fa869ee404c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <m_pd.h>
#include <math.h>
#define MAXFLOAT  1e18f;
#define LOGTEN 2.302585092994

/* NT and OSX don't appear to have single-precision ANSI math */
#if defined(_WIN32) || defined(__APPLE__)
#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