aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/reflist.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-03-30 20:53:57 +0200
committerThomas White <taw@physics.org>2014-03-30 20:54:33 +0200
commite50602787cdbf488cf829ca293c9b9f359aa36f8 (patch)
treebccb71d391c0b9d04f026f506fda374617861457 /libcrystfel/src/reflist.h
parentfb6a2d1f8cd57b8e40fd7b33dfebe07057cfc1e9 (diff)
check_hkl: Add L-test
Diffstat (limited to 'libcrystfel/src/reflist.h')
-rw-r--r--libcrystfel/src/reflist.h5
1 files changed, 5 insertions, 0 deletions
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:
*