diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-08-27 13:35:52 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-08-27 13:37:30 +0200 |
commit | 1f443d3fdb93e71a70244b7521ae0f4c40601351 (patch) | |
tree | ef98c12efbdd879f6e0dc4f0c439b621824195ee /common.h | |
parent | 83bc788ae55b49d633ead8fa7ad5136f919826ce (diff) |
Add public API for evaluating the residual at an arbitrary location.
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18,6 +18,7 @@ #ifndef TEUKOLSKY_DATA_COMMON_H #define TEUKOLSKY_DATA_COMMON_H +#define ABS(x) (((x) >= 0) ? (x) : -(x)) #define SQR(x) ((x) * (x)) #define SGN(x) ((x) >= 0.0 ? 1.0 : -1.0) #define MAX(x, y) ((x) > (y) ? (x) : (y)) |