brian2/devices/cpp_standalone/brianlib/common_math.h
raw| 1 | #ifndef _BRIAN_COMMON_MATH_H |
| 2 | #define _BRIAN_COMMON_MATH_H |
| 3 | |
| 4 | #include<limits> |
| 5 | #include<stdlib.h> |
| 6 | |
| 7 | #ifdef _MSC_VER |
| 8 | #define INFINITY (std::numeric_limits<double>::infinity()) |
| 9 | #define NAN (std::numeric_limits<double>::quiet_NaN()) |
| 10 | #define M_PI 3.14159265358979323846 |
| 11 | #endif |
| 12 | |
| 13 | #endif |