aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-08 15:53:17 +0100
committerThomas White <taw@physics.org>2010-01-08 15:53:17 +0100
commitbd26d5745269594647ec79f64fdfb8e750891672 (patch)
tree29968c2c0872fe0d52c5078426c3a89f1e8ed6ec /src/utils.h
parenta374cdb2396659d711f85851cb0904ccf7c9731d (diff)
Zaefferer gradient search
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h4
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))