diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index 4f1dc86c..9aa07c8c 100644 --- a/src/utils.h +++ b/src/utils.h @@ -110,6 +110,10 @@ static inline double distance3d(double x1, double y1, double z1, #define is_odd(a) ((a)%2==1) +#define biggest(a,b) ((a>b) ? (a) : (b)) +#define smallest(a,b) ((a<b) ? (a) : (b)) + + /* Photon energy (J) to wavelength (m) */ #define ph_en_to_lambda(a) ((PLANCK*C_VACUO)/(a)) |