From def8bd0c541252e7f606c9286912eb67d3ac5929 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 24 Jun 2014 16:39:06 +0200 Subject: Add unlikely() --- libcrystfel/src/geometry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/geometry.c') diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index 6ccaf3d8..c1d433c8 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -185,7 +185,7 @@ static Reflection *check_reflection(struct image *image, Crystal *cryst, && (fabs(rlow) > pr) && (fabs(rhigh) > pr) ) return NULL; - if ( rlow < rhigh ) { + if ( unlikely(rlow < rhigh) ) { ERROR("Reflection with rlow < rhigh!\n"); ERROR("%3i %3i %3i rlow = %e, rhigh = %e\n", h, k, l, rlow, rhigh); -- cgit v1.2.3