aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/reflist.c5
-rw-r--r--libcrystfel/src/reflist.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/libcrystfel/src/reflist.c b/libcrystfel/src/reflist.c
index be1663ef..2dd5619e 100644
--- a/libcrystfel/src/reflist.c
+++ b/libcrystfel/src/reflist.c
@@ -139,11 +139,6 @@ struct _reflist {
};
-#define SERIAL(h, k, l) ((((h)+512)<<20) + (((k)+512)<<10) + ((l)+512))
-#define GET_H(serial) ((((serial) & 0x3ff00000)>>20)-512)
-#define GET_K(serial) ((((serial) & 0x000ffc00)>>10)-512)
-#define GET_L(serial) (((serial) & 0x000003ff)-512)
-
/**************************** Creation / deletion *****************************/
static Reflection *new_node(unsigned int serial)
diff --git a/libcrystfel/src/reflist.h b/libcrystfel/src/reflist.h
index d5a62faa..e3e16c03 100644
--- a/libcrystfel/src/reflist.h
+++ b/libcrystfel/src/reflist.h
@@ -33,6 +33,11 @@
#include <config.h>
#endif
+#define SERIAL(h, k, l) ((((h)+512)<<20) + (((k)+512)<<10) + ((l)+512))
+#define GET_H(serial) ((((serial) & 0x3ff00000)>>20)-512)
+#define GET_K(serial) ((((serial) & 0x000ffc00)>>10)-512)
+#define GET_L(serial) (((serial) & 0x000003ff)-512)
+
/**
* RefList:
*