parent
af15383578
commit
508d764d63
6 changed files with 279 additions and 104 deletions
|
|
@ -106,6 +106,7 @@
|
|||
#define CIRCLE_CIRC(R) (2.0 * M_PI * (R))
|
||||
|
||||
#define SIGN(a) ((a>0)-(a<0))
|
||||
#define IS_POWER_OF_2(x) ((x) && !((x) & ((x) - 1)))
|
||||
|
||||
// Macros to contrain values
|
||||
#define NOLESS(v,n) do{ if (v < n) v = n; }while(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue