Added M_PI definition in case it's ever removed, since it technically isn't ANSI spec

CQTexperiment
Chris Moeller 2013-11-18 22:38:25 -08:00
parent 0921d843d8
commit 9e9c50b5cf
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@
#include <stdlib.h> // malloc(), calloc(), free()
#include <math.h> // floorf(), sinf()
#ifndef M_PI
#define M_PI 3.141592653589793
#endif
#define HI_NYBBLE(x) ((x) >> 4)
#define LO_NYBBLE(x) ((x) & 0x0F)
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))