diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-12-04 15:08:45 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-04 15:08:45 +0100 |
commit | 74087faebcf1f4f1173f671787d39dfb507153ef (patch) | |
tree | bb7a6a3c41e97bc413fa3b0a2d889ce5c5fab152 | |
parent | e0131415f228602579c6ff2423e0b84828cef094 (diff) |
-rw-r--r-- | src/trumpet.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/trumpet.c b/src/trumpet.c index 40ce181..4421cf6 100644 --- a/src/trumpet.c +++ b/src/trumpet.c @@ -13,6 +13,13 @@ #define MAX(x,y) (x) > (y) ? (x) : (y) #define SQR(x) ((x)*(x)) +#ifndef M_SQRT2 +#define M_SQRT2 1.4142135623730951 +#endif +#ifndef M_SQRT1_2 +#define M_SQRT1_2 0.7071067811865476 +#endif + #define MASS 1 /* * the constant C from e.g. 0908.1063v4 |